Skip to content

Commit

Permalink
解决 remixicon 图标集与 arco 图标集显示大小不一样问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Akiraka committed Jul 10, 2024
1 parent 16e302e commit f70c9f4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/IconSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<a-select v-model="dataModel" :options="IconSelect" :trigger-props="{ contentClass: 'iconSelect' }" allow-search allow-clear placeholder="请选择菜单图标">
<template #label="{ data }">
<a-space>
<component :is="data.value" />
<component :is="data.value" :width="size" :height="size" :size="size.toString()" />
<span v-if="title">{{data?.value}}</span>
</a-space>
</template>
<template #option="{ data }">
<component :is="data.value" />
<component :is="data.value" :width="size" :height="size" :size="size.toString()" />
</template>
</a-select>
</template>
Expand All @@ -25,6 +25,11 @@ const props = defineProps({
title: {
type: Boolean,
default: true
},
// Akiraka 20240709 控制图标显示大小
size: {
type: [Number, String],
default: 16
}
});
Expand Down

0 comments on commit f70c9f4

Please sign in to comment.