fix(TreeSelect): placehold slot invalid (#7545)
parent
9a45b35511
commit
e01f26c541
|
@ -236,6 +236,7 @@ const TreeSelect = defineComponent({
|
||||||
switcherIcon = slots.switcherIcon?.(),
|
switcherIcon = slots.switcherIcon?.(),
|
||||||
fieldNames = props.replaceFields,
|
fieldNames = props.replaceFields,
|
||||||
id = formItemContext.id.value,
|
id = formItemContext.id.value,
|
||||||
|
placeholder = slots.placeholder?.(),
|
||||||
} = props;
|
} = props;
|
||||||
const { isFormItemInput, hasFeedback, feedbackIcon } = formItemInputContext;
|
const { isFormItemInput, hasFeedback, feedbackIcon } = formItemInputContext;
|
||||||
// ===================== Icons =====================
|
// ===================== Icons =====================
|
||||||
|
@ -342,6 +343,7 @@ const TreeSelect = defineComponent({
|
||||||
maxTagPlaceholder={props.maxTagPlaceholder || slots.maxTagPlaceholder}
|
maxTagPlaceholder={props.maxTagPlaceholder || slots.maxTagPlaceholder}
|
||||||
placement={placement.value}
|
placement={placement.value}
|
||||||
showArrow={hasFeedback || showArrow}
|
showArrow={hasFeedback || showArrow}
|
||||||
|
placeholder={placeholder}
|
||||||
/>,
|
/>,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue