-
Notifications
You must be signed in to change notification settings - Fork 141
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
[comp: Skeleton] add Skeleton component #94
Comments
@zymoplastic @danranVm 负责此组件的 review, API 设计完成后请 |
@danranVm @zymoplastic 麻烦大佬review一下 |
和 antd 的设计差别有点大,能写一两个使用 demo 看看嘛? |
目前来看
首先, 给 item 传参放到了一个新的属性 |
|
|
最终方案:
|
那就按照这个来吧。 |
我没问题了 |
重新设计Skeleton组件,这个issue关闭 |
What problem does this feature solve?
在需要等待加载内容的位置提供一个占位图形组合。
What does the proposed API look like?
API
Ix-skeleton
Props
animation
boolean
false
width
number
|string
100%
height
number
|string
100%
loading
boolean
false
false
的值只有在default
槽中有内容时才会工作。type
string
undefined
required
骨架组件列表,例如type="text@3"
和type="card
,list-item
"。将根据提供的字符串递归生成相应的框架。 还支持多个元素的简写,例如article@3
和paragraph@2
,它们将生成3 article skeletons and 2 paragraph
骨架。具体的预设列表会根据后续具体业务场景来建立。types
object
{}
type
搭配使用,建立自定义的骨架模板。default
The text was updated successfully, but these errors were encountered: