mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-03 16:07:24 +00:00
1.2 KiB
1.2 KiB
category, type, title, subtitle
| category | type | title | subtitle |
|---|---|---|---|
| Components | 反馈 | Spin | 加载中 |
用于页面和区块的加载中状态。
何时使用
页面局部处于等待异步数据或正在渲染过程时,合适的加载动效会有效缓解用户的焦虑。
API
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| delay | 延迟显示加载效果的时间(防止闪烁) | number (毫秒) | - |
| indicator | 加载指示符 | ReactNode | - |
| size | 组件大小,可选值为 small default large |
string | 'default' |
| spinning | 是否为加载中状态 | boolean | true |
| tip | 当作为包裹元素时,可以自定义描述文案 | string | - |
| wrapperClassName | 包装器的类属性 | string | - |
静态方法
-
Spin.setDefaultIndicator(indicator: ReactNode)你可以自定义全局默认 Spin 的元素。