949 B
		
	
	
	
	
			
		
		
	
	
			949 B
		
	
	
	
	
API
| 参数 | 说明 | 类型 | 默认值 | 
|---|---|---|---|
| delay | 延迟显示加载效果的时间(防止闪烁) | number (毫秒) | - | 
| indicator | 加载指示符 | vNode | slot | - | 
| size | 组件大小,可选值为 smalldefaultlarge | string | 'default' | 
| spinning | 是否为加载中状态 | boolean | true | 
| tip | 当作为包裹元素时,可以自定义描述文案 | string | - | 
| wrapperClassName | 包装器的类属性 | string | - | 
静态方法
- 
Spin.setDefaultIndicator({indicator})同上indicator,你可以自定义全局默认元素Spin.setDefaultIndicator({ indicator: (h) => { return <i class='anticon anticon-loading anticon-spin ant-spin-dot'></i> }, }) 或者 Spin.setDefaultIndicator({ indicator: { render () { return <i class='anticon anticon-loading anticon-spin ant-spin-dot'></i> }, }, })