refactor: replace legacy icon usages with unified ZnIcon
Replace van-icon and uni-icons custom icon usages with the unified ZnIcon component in GoodFacility, CreateServiceOrder and GoodDetail components. Remove unused iconsMap imports from all modified files, and delete the redundant @font-face style declaration for znicons in GoodDetail.
This commit is contained in:
@@ -5,9 +5,7 @@
|
||||
'border-bottom': index < goodsData.commodityEquipment.length - 1,
|
||||
}">
|
||||
<div class="flex items-center flex-row shrink-0">
|
||||
<van-icon fontFamily="znicons" size="20" color="#171717">
|
||||
|
||||
</van-icon>
|
||||
<zn-icon :name="moduleItem.icon" size="20" color="#171717"></zn-icon>
|
||||
<span class="ml-[4px] text-[12px] text-[#171717] leading-[20px]">
|
||||
{{ moduleItem.title }}
|
||||
</span>
|
||||
@@ -24,7 +22,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { iconsMap } from "@/assets/fonts/znicons";
|
||||
import ZnIcon from "@/components/ZnIcon/index.vue";
|
||||
import { defineProps } from "vue";
|
||||
|
||||
// Props定义
|
||||
|
||||
Reference in New Issue
Block a user