Browse Source

fix: 修复IconPicker BUG

kailong321200875 1 year ago
parent
commit
6037335934
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/IconPicker/src/IconPicker.vue

+ 2 - 2
src/components/IconPicker/src/IconPicker.vue

@@ -104,8 +104,8 @@ const iconSelect = (icon: string) => {
       @show="popoverShow"
     >
       <template #reference>
-        <div v-if="modelValue" :style="iconWrapStyle">
-          <Icon :icon="modelValue" />
+        <div :style="iconWrapStyle">
+          <Icon v-if="modelValue" :icon="modelValue" />
         </div>
       </template>
       <ElScrollbar class="h-[calc(100%-50px)]!">