mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-29 18:48:32 +08:00
fix(TreeSelect): placehold slot invalid (#7545)
This commit is contained in:
parent
9a45b35511
commit
e01f26c541
@ -236,6 +236,7 @@ const TreeSelect = defineComponent({
|
||||
switcherIcon = slots.switcherIcon?.(),
|
||||
fieldNames = props.replaceFields,
|
||||
id = formItemContext.id.value,
|
||||
placeholder = slots.placeholder?.(),
|
||||
} = props;
|
||||
const { isFormItemInput, hasFeedback, feedbackIcon } = formItemInputContext;
|
||||
// ===================== Icons =====================
|
||||
@ -342,6 +343,7 @@ const TreeSelect = defineComponent({
|
||||
maxTagPlaceholder={props.maxTagPlaceholder || slots.maxTagPlaceholder}
|
||||
placement={placement.value}
|
||||
showArrow={hasFeedback || showArrow}
|
||||
placeholder={placeholder}
|
||||
/>,
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user