feat: 修改图片显示问题

This commit is contained in:
chenli
2026-01-29 11:43:02 +08:00
parent 82ea0103b6
commit 112a036dd5
15 changed files with 16 additions and 18 deletions

View File

@@ -16,13 +16,14 @@
@click="handelClick(item)">
<!-- 渲染图标 -->
<view class="item-icon" :style="{ background: item.iconBackground || '#008cff' }">
<image class="item-img" :src="`/static/image/${item.name}.png`"></image>
<!-- 使用 iconify-icon 渲染 ep 系列图标 -->
<iconify-icon
<!-- <iconify-icon
:icon="item.icon"
color="#ffffff"
width="24"
height="24"
></iconify-icon>
></iconify-icon> -->
</view>
<!-- 渲染名称 -->
<text class="u-font-24 u-line-1 item-text">{{item.name}}</text>
@@ -272,7 +273,6 @@
}
.menu-v {
// 原有样式...
.workFlow-list {
background-color: #fff;
@@ -311,6 +311,11 @@
margin-bottom: 10rpx;
}
.item-img {
width: 60%;
height: 60%;
}
// 文字样式
.item-text {
font-size: 24rpx;