You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
skeleton
是真实DOM结构的抽象,组件内部没办法把所有DOM排版方式包括进去,比如头像可以在段落的旁边,也可以在段落的上面。skeleton
组件的核心应该是提供不同DOM结构的抽象,然后提供默认的排版和动画等能力。基础用法
默认排版:一个标题+三个段落,标题默认宽度为
40%
,中间两个段落默认宽度100%
,最后一个段落默认宽度为60%
。自定义排版
d-skeleton 参数
boolean
boolean
number
boolean
d-skeleton-item 参数
预置一种具象类型:
image
除显示灰色背景外,还需要显示一个占位图,默认是square
形状,宽高100px
。预置两种抽象类型:
circle
为圆形,默认宽高40px
;square
为方形,默认宽度100%
,高度16px
。两种抽象类型可以通过原生style
自定义宽高。Variant 类型定义
可讨论是否需要增加其他类型,比如按钮、标题等。
Beta Was this translation helpful? Give feedback.
All reactions