Skip to content

Commit

Permalink
fix(TreeSelect): placehold slot invalid (vueComponent#7545)
Browse files Browse the repository at this point in the history
  • Loading branch information
selicens authored Apr 30, 2024
1 parent 9a45b35 commit e01f26c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/tree-select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =====================
Expand Down Expand Up @@ -342,6 +343,7 @@ const TreeSelect = defineComponent({
maxTagPlaceholder={props.maxTagPlaceholder || slots.maxTagPlaceholder}
placement={placement.value}
showArrow={hasFeedback || showArrow}
placeholder={placeholder}
/>,
),
);
Expand Down

0 comments on commit e01f26c

Please sign in to comment.