File tree 2 files changed +11
-12
lines changed
src/components/ma-dict-picker
2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 21
21
"@imengyu/vue3-context-menu" : " ^1.4.4" ,
22
22
"@mineadmin/echarts" : " ^1.0.5" ,
23
23
"@mineadmin/form" : " ^1.0.33" ,
24
- "@mineadmin/pro-table" : " ^1.0.63 " ,
25
- "@mineadmin/search" : " ^1.0.31 " ,
24
+ "@mineadmin/pro-table" : " ^1.0.67 " ,
25
+ "@mineadmin/search" : " ^1.0.33 " ,
26
26
"@mineadmin/table" : " ^1.0.33" ,
27
27
"@vueuse/core" : " ^12.7.0" ,
28
28
"@vueuse/integrations" : " ^12.7.0" ,
Original file line number Diff line number Diff line change @@ -40,17 +40,16 @@ const model = defineModel<any>()
40
40
41
41
<template>
42
42
<el-select v-model="model" v-bind="$attrs">
43
- <slot name="default">
44
- <template v-if="dictionaryData">
45
- <template v-for="item in dictionaryData as Dictionary[]" :key="item">
46
- <el-option :value="item.value" :label="item?.i18n ? t(item.i18n) : item.label">
47
- <slot v-if="$slots.optionDefault" name="optionDefault" />
48
- </el-option>
49
- </template>
50
- </template>
51
- </slot>
52
43
<template v-for="slot in Object.keys($slots)" #[slot]>
53
- <slot v-if="slot !== 'default'" :name="slot" />
44
+ <slot :name="slot">
45
+ <template v-if="dictionaryData && slot === 'default'">
46
+ <template v-for="item in dictionaryData as Dictionary[]" :key="item">
47
+ <el-option :value="item.value" :label="item?.i18n ? t(item.i18n) : item.label">
48
+ <slot v-if="$slots.optionDefault" name="optionDefault" />
49
+ </el-option>
50
+ </template>
51
+ </template>
52
+ </slot>
54
53
</template>
55
54
</el-select>
56
55
</template>
You can’t perform that action at this time.
0 commit comments