Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
hanyefeng opened this issue Apr 30, 2024 · 0 comments · Fixed by #7545
Closed
1 task

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

hanyefeng opened this issue Apr 30, 2024 · 0 comments · Fixed by #7545
Assignees

Comments

@hanyefeng
Copy link

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants