feat:bug修改
This commit is contained in:
1 parent
9005953114
commit
5e7dd66971
3 files changed
+39
-27
No files matched your search
@@ -1,13 +1,6 @@
|
||||
<template>
|
||||
<el-select
|
||||
:model-value="modelValue"
|
||||
:placeholder="placeholder"
|
||||
:multiple="multiple"
|
||||
:disabled="disabled"
|
||||
:clearable="clearable"
|
||||
class="w-full"
|
||||
@update:model-value="handleChange"
|
||||
>
|
||||
<el-select :model-value="modelValue" :placeholder="placeholder" :multiple="multiple" :disabled="disabled"
|
||||
:clearable="clearable" class="w-full" @update:model-value="handleChange">
|
||||
<el-option v-for="item in dictData" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</template>
|
||||
@@ -52,11 +45,11 @@ const dictList = ref<DictOption[]>([]);
|
||||
|
||||
async function loadDictData() {
|
||||
if (props.dictType) {
|
||||
const res = await getDicts(props.dictType);
|
||||
dictList.value = res.data.map((p: any) => ({
|
||||
label: p.label,
|
||||
value: p.value
|
||||
}));
|
||||
const res = await getDicts(props.dictType);
|
||||
dictList.value = res.data.map((p: any) => ({
|
||||
label: p.label,
|
||||
value: p.value
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user