components/skeleton/index.zh-CN.md
<code src="./demo/basic.tsx">基本</code> <code src="./demo/complex.tsx">复杂的组合</code> <code src="./demo/active.tsx">动画效果</code> <code src="./demo/element.tsx">按钮/头像/输入框/图像/自定义节点</code> <code src="./demo/children.tsx">包含子组件</code> <code src="./demo/list.tsx">列表</code> <code src="./demo/style-class.tsx" version="6.0.0">自定义语义结构的样式和类</code> <code src="./demo/componentToken.tsx" debug>自定义组件 Token</code>
通用属性参考:通用属性
<embed src="./shared/sharedProps.zh-CN.md"></embed>
| 属性 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| avatar | 是否显示头像占位图 | boolean | SkeletonAvatar | false | |
| loading | 为 true 时,显示占位图。反之则直接展示子组件 | boolean | - | |
| paragraph | 是否显示段落占位图 | boolean | SkeletonParagraphProps | true | |
| round | 为 true 时,段落和标题显示圆角 | boolean | false | |
| title | 是否显示标题占位图 | boolean | SkeletonTitleProps | true |
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| width | 设置标题占位图的宽度 | number | string | - |
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| rows | 设置段落占位图的行数 | number | - |
| width | 设置段落占位图的宽度,若为数组时则为对应的每行宽度,反之则是最后一行的宽度 | number | string | Array<number | string> | - |
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| shape | 指定头像的形状 | circle | square | circle |
| size | 设置头像占位图的大小 | number | large | medium | small | medium |
| 属性 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| block | 将按钮宽度调整为其父宽度的选项 | boolean | false | 4.17.0 |
| shape | 指定按钮的形状 | circle | round | square | default | - | |
| size | 设置按钮的大小 | large | medium | small | medium |
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| size | 设置输入框的大小 | large | medium | small | medium |
<code src="./demo/_semantic.tsx" simplify="true"></code>
<code src="./demo/_semantic_element.tsx" simplify="true"></code>
<ComponentTokenTable component="Skeleton"></ComponentTokenTable>