Replies: 2 comments
-
支持插槽单独列出来,更好的展示默认插槽和具名插槽 |
Beta Was this translation helpful? Give feedback.
0 replies
-
支持单独列出来 小程序插槽方面不像其他端或者框架有约定的使用方式 确实还是需要明确标识 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
背景
小程序文档目前没有单独展示 slot 插槽的地方,一般为属性自带同名插槽, 所以如果没有属性承载的不具名插槽就会被遗漏,比如 overlay 组件。
不具名/默认 slot 如何在文档展示?? 这里以
Empty
组件为例,对比其他业内小程序组件库在文档中对插槽呈现方式。如果你有更好的建议,欢迎留言讨论~
Vant Weapp
Ant Design Mini
Lin UI
TDesign Miniprogram
Beta Was this translation helpful? Give feedback.
All reactions