Skip to content

tree-select组件的placeholder通过slot传入的时候不生效 #7544

@hanyefeng

Description

@hanyefeng
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.1

Environment

vue3.2.36

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<template>
<TreeSelect
placeholder="props placeholder"
:style="{ width: '200px' }"
></TreeSelect>
<br />
<br />
<TreeSelect :style="{ width: '200px' }">
<template #placeholder>slot placeholder not work</template>
</TreeSelect>
</template>

<script setup>
import { TreeSelect } from "ant-design-vue";
</script>

What is expected?

TreeSelect组件的placeholder插槽可以正常使用

What is actually happening?

TreeSelect组件设置placeholder插槽无效,但在文档中是支持slot的
https://www.antdv.com/components/tree-select

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions