fix(TreeSelect): placehold slot invalid (#7545)

pull/7548/head
selicens 7 months ago committed by GitHub
parent 9a45b35511
commit e01f26c541
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save