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:
@@ -37,9 +37,7 @@
|
||||
</div>
|
||||
|
||||
<div v-else class="w-full h-full flex flex-items-center flex-justify-center" @click="handleChooseImage">
|
||||
<uni-icons fontFamily="znicons" size="24" color="#6A717F">
|
||||
{{ iconsMap["zn-camera"] }}
|
||||
</uni-icons>
|
||||
<zn-icon name="zn-camera" size="24" color="#6A717F"></zn-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -74,7 +72,7 @@ import { ref, computed, onMounted, nextTick, defineProps, watch } from "vue";
|
||||
import { SCROLL_TO_BOTTOM } from "@/constants/constant";
|
||||
import { createWorkOrder } from "@/api/workOrder";
|
||||
import { uploadFile } from "@/api/upload";
|
||||
import { iconsMap } from "@/assets/fonts/znicons";
|
||||
import ZnIcon from "@/components/ZnIcon/index.vue";
|
||||
|
||||
const props = defineProps({
|
||||
toolCall: {
|
||||
|
||||
Reference in New Issue
Block a user