style: 更新 Ant Select 样式和高度调整

This commit is contained in:
rd
2025-09-15 11:57:33 +08:00
parent 96c2c01443
commit 72af0d4976
2 changed files with 29 additions and 27 deletions

View File

@ -15,7 +15,7 @@
@change="handleChange"
>
<Option v-for="(item, index) in options" :key="index" :value="item.id" :label="item.name">
<div class="flex items-center">
<div class="flex items-center h-full">
<img v-if="item.icon" :src="item.icon" class="w-16px h-16px mr-8px rounded-4px" />
{{ item.name }}
</div>
@ -48,7 +48,7 @@ const props = defineProps({
maxTagCount: {
type: Number,
default: 3,
},
},
allClear: {
type: Boolean,
default: true,
@ -56,7 +56,7 @@ const props = defineProps({
allowSearch: {
type: Boolean,
default: false,
}
},
});
const emits = defineEmits(['update:modelValue', 'change']);
@ -79,4 +79,4 @@ const handleChange = (value) => {
selectedValues.value = value;
emits('change', value);
};
</script>
</script>