fix(Select): placeholder not displayed when v-model:value initialized with empty string

pull/8420/head
Spaceman 2025-11-17 21:11:22 +08:00
parent bbb7670df1
commit ecad2fde94
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ export default defineComponent({
// ========================= Wrap Value =========================
const convert2LabelValues = (draftValues: DraftValueType) => {
// Convert to array
const valueList = toArray(draftValues);
const valueList = draftValues !== '' ? toArray(draftValues) : [];
// Convert to labelInValue type
return valueList.map(val => {