From e01f26c541de9310968a96c1327086817c92187f Mon Sep 17 00:00:00 2001 From: selicens <1244620067@qq.com> Date: Tue, 30 Apr 2024 19:11:08 +0800 Subject: [PATCH] fix(TreeSelect): placehold slot invalid (#7545) --- components/tree-select/index.tsx | 2 ++ 1 file changed, 2 insertions(+) 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} />, ), );