Skip to content

Loading 加载中

介绍

加载图标,用于表示加载中的过渡状态。

加载类型

通过 type 属性设置加载图标类型,支持 spinner flower circle wave sound ripple rubik bounce 八种类型,默认为 spinner

html
<vd-loading type="flower" />

自定义颜色

通过 color 属性设置加载图标颜色,默认继承父级颜色。

html
<vd-loading color="#07c160" />

自定义尺寸

通过 size 属性设置加载图标尺寸,默认继承父级颜色。

html
<vd-loading size="32" />

自定义图标

通过 icon 属性设置加载图标,优先级高于 type

html
<vd-loading icon="star" />

API

Props

参数说明类型默认值
type加载类型LoadingType'spinner'
size加载图标大小string | number-
color加载图标颜色string-
icon加载图标名称,同 icon 组件IconsName-

代替原始 Props

参数说明类型默认值
custom-id根节点idstring-
custom-class根节点类名ClassValue-
custom-style根节点样式StyleValue-

Events

事件名说明回调参数
click点击时触发MouseEvent

Slots

名称说明
default加载图标

赣ICP备2025061025号-1