Skip to content
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

[Select] empty 为 text 的时候,不作为插槽进行渲染 #4820

Open
Cat1007 opened this issue Dec 9, 2024 · 3 comments
Open

[Select] empty 为 text 的时候,不作为插槽进行渲染 #4820

Cat1007 opened this issue Dec 9, 2024 · 3 comments
Labels
💪🏻 enhancement New feature or request

Comments

@Cat1007
Copy link
Collaborator

Cat1007 commented Dec 9, 2024

tdesign-vue-next 版本

1.10.4

重现链接

https://stackblitz.com/edit/lteovkzc?file=package.json,src%2Fdemo.vue

重现步骤

image

期望结果

期望在简单文本场景下,传入字符串而非渲染函数或插槽时,可以复用原有 empty 时 placeholder 的样式,提供便捷的替换空文本的使用,而不用每次都复刻相关样式,大部分这种场景下仅仅时替换文字即可满足需求

Copy link
Contributor

github-actions bot commented Dec 9, 2024

👋 @Cat1007,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@liweijie0812
Copy link
Collaborator

现在有 empty 组件 ,原先 empty 节点改用 empty 组件渲染了吧 @uyarn

@uyarn
Copy link
Collaborator

uyarn commented Dec 9, 2024

现在有 empty 组件 ,原先 empty 节点改用 empty 组件渲染了吧 @uyarn

可以 不过得看看默认把string传入descriptions那个节点是不是样式可以

@uyarn uyarn added the 💪🏻 enhancement New feature or request label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪🏻 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants