fix(Select): placeholder not displayed when v-model:value initialized with empty string
parent
bbb7670df1
commit
ecad2fde94
|
|
@ -207,7 +207,7 @@ export default defineComponent({
|
||||||
// ========================= Wrap Value =========================
|
// ========================= Wrap Value =========================
|
||||||
const convert2LabelValues = (draftValues: DraftValueType) => {
|
const convert2LabelValues = (draftValues: DraftValueType) => {
|
||||||
// Convert to array
|
// Convert to array
|
||||||
const valueList = toArray(draftValues);
|
const valueList = draftValues !== '' ? toArray(draftValues) : [];
|
||||||
|
|
||||||
// Convert to labelInValue type
|
// Convert to labelInValue type
|
||||||
return valueList.map(val => {
|
return valueList.map(val => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue