diff --git a/components/tree-select/index.tsx b/components/tree-select/index.tsx index ee2282b9f..426e1f165 100644 --- a/components/tree-select/index.tsx +++ b/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} />, ), );