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

feat: show placeholder description when tree node empty #59

Closed
wants to merge 0 commits into from

Conversation

Nauxscript
Copy link
Collaborator

closed #41

@vercel
Copy link

vercel bot commented Jan 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
vue3-dida ✅ Ready (Inspect) Visit Preview Jan 10, 2023 at 6:03AM (UTC)

@vercel vercel bot temporarily deployed to Preview January 10, 2023 06:03 Inactive
@Nauxscript
Copy link
Collaborator Author

由于 naive-ui 不支持 tree 的 slot 或者内容为空的占位设置,所以在渲染树节点的时候判断是否有子节点,如果没有,则渲染一个带自定义类名的选项,以渲染为占位内容。

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 this pull request may close these issues.

侧边栏显示标签 icon
1 participant