Spin
Spin
Used for the loading status of a page or a block.
가져오기import{ Spin }from"antd"; |
가져오기import{ Spin }from"antd"; |
When part of the page is waiting for asynchronous data or during a rendering process, an appropriate loading animation can effectively alleviate users' inquietude.
Common props ref:Common props
Property | Description | Type | Default | Version |
---|---|---|---|---|
delay | Specifies a delay in milliseconds for loading state (prevent flush) | number (milliseconds) | - | |
fullscreen | Display a backdrop with the Spin component | boolean | false | 5.11.0 |
indicator | React node of the spinning indicator | ReactNode | - | |
percent | The progress percentage, when set to auto , it will be an indeterminate progress | number | 'auto' | - | 5.18.0 |
size | The size of Spin, options: small , default and large | string | default | |
spinning | Whether Spin is visible | boolean | true | |
tip | Customize description content when Spin has children | ReactNode | - | |
wrapperClassName | The className of wrapper when Spin has children | string | - |
Spin.setDefaultIndicator(indicator: ReactNode)
You can define default spin element globally.
토큰 이름 | 설명 | 타입 | 기본값 |
---|---|---|---|
contentHeight | 内容区域高度 | string | number | 400 |
dotSize | 加载图标尺寸 | number | 20 |
dotSizeLG | 大号加载图标尺寸 | number | 32 |
dotSizeSM | 小号加载图标尺寸 | number | 14 |
Loading state:
Loading state: