Skip to content

Commit e01f26c

Browse files
authored
fix(TreeSelect): placehold slot invalid (#7545)
1 parent 9a45b35 commit e01f26c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: components/tree-select/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ const TreeSelect = defineComponent({
236236
switcherIcon = slots.switcherIcon?.(),
237237
fieldNames = props.replaceFields,
238238
id = formItemContext.id.value,
239+
placeholder = slots.placeholder?.(),
239240
} = props;
240241
const { isFormItemInput, hasFeedback, feedbackIcon } = formItemInputContext;
241242
// ===================== Icons =====================
@@ -342,6 +343,7 @@ const TreeSelect = defineComponent({
342343
maxTagPlaceholder={props.maxTagPlaceholder || slots.maxTagPlaceholder}
343344
placement={placement.value}
344345
showArrow={hasFeedback || showArrow}
346+
placeholder={placeholder}
345347
/>,
346348
),
347349
);

0 commit comments

Comments
 (0)