$ui/components/my-skeleton

骨架屏效果

Source:

Members

(inner) props

Source:
Properties:
Name Type Attributes Default Description
active boolean <optional>
false

是否展示动画效果

loading boolean <optional>
false

为 true 时,显示占位图。反之则直接展示子组件

avatar Boolean | Object <optional>
false

是否显示头像占位图, 支持对象配置

Properties
Name Type Attributes Description
size string <optional>

头像尺寸,可选 default、large、small

shape string <optional>

头像形状,可选 circle、square

paragraph boolean | object <optional>
true

是否显示段落占位图, 支持对象配置

Properties
Name Type Attributes Default Description
width string <optional>
60%

设置段落占位图最后一行的宽度

rows number <optional>
3

设置段落占位图的行数

title Boolean | Object <optional>
true

是否显示标题占位图,支持对象配置

Properties
Name Type Attributes Default Description
width string <optional>
50%

设置标题占位图的宽度

属性参数

(inner) slots

Source:
Properties:
Name Type Description
default string

默认插槽,定义内容

插槽