Browse Source

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

pull/7548/head
selicens 7 months ago committed by GitHub
parent
commit
e01f26c541
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      components/tree-select/index.tsx

2
components/tree-select/index.tsx

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