feat: 修改图片显示问题
This commit is contained in:
@@ -12,13 +12,15 @@
|
||||
<!-- 遍历渲染业务图标 -->
|
||||
<view class="item u-flex-col" v-for="(item,index) in cardData" :key="index" @click="clickItem(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>
|
||||
<view class="item-title u-m-t-8">{{item.name}}</view>
|
||||
</view>
|
||||
@@ -184,6 +186,10 @@
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
.item-img {
|
||||
width: 60%;
|
||||
height: 60%;
|
||||
}
|
||||
|
||||
.more {
|
||||
background: #ececec;
|
||||
|
||||
Reference in New Issue
Block a user