update 优化 代码中存在的警告

This commit is contained in:
疯狂的狮子Li
2023-11-30 11:13:29 +08:00
parent 5c701801db
commit e1023bb331
6 changed files with 15 additions and 10 deletions

View File

@ -2,7 +2,7 @@
<div class="relative" :style="{ width: width }">
<el-input v-model="modelValue" readonly @click="visible = !visible" placeholder="点击选择图标">
<template #prepend>
<svg-icon :icon-class="modelValue as string" />
<svg-icon :icon-class="modelValue" />
</template>
</el-input>