Skip to content

Commit

Permalink
fix(components): 修复iconSelect选择器点击事件失效
Browse files Browse the repository at this point in the history
  • Loading branch information
yanbowe committed Feb 9, 2023
1 parent de517be commit 7e505f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/custom/IconSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
<n-input v-model:value="searchValue" placeholder="搜索图标"></n-input>
</template>
<div v-if="iconsList.length > 0" class="grid grid-cols-9 h-auto overflow-auto">
<template v-for="iconItem in iconsList" :key="iconItem">
<span v-for="iconItem in iconsList" :key="iconItem" @click="handleChange(iconItem)">
<svg-icon
:icon="iconItem"
class="border-1px border-[#d9d9d9] text-30px m-2px p-5px"
class="border-1px border-[#d9d9d9] text-30px m-2px p-5px cursor-pointer"
:class="{ 'border-primary': modelValue === iconItem }"
@click="handleChange(iconItem)"
/>
</template>
</span>
</div>
<n-empty v-else class="w-306px" description="你什么也找不到" />
</n-popover>
Expand Down

0 comments on commit 7e505f9

Please sign in to comment.