@rcp/c.loadingwrapper
v2.0.0
Published
A component for easy create loading mask
Downloads
2
Maintainers
Readme
@rcp/c.loadingwrapper
A component for easy create loading mask
Installation
npm install @rcp/c.loadingwrapper
# or use yarn
yarn add @rcp/c.loadingwrapper
Usage
import LoadingWrapper from '@rcp/c.loadingwrapper'
import '@rcp/c.loadingwrapper/style.less'
<LoadingWrapper isLoading>
<div>some content</div>
</LoadingWrapper>
Props
className
- Type:
string
- Default:
null
isLoading
- Type:
boolean
- Default:
false
renderLoadingDelayMs
渲染 Loading 延迟毫秒数,为了减少不必要的视觉跳跃
- Type:
number
- Default:
1000
withDelayRenderFirstly
是否首次的时候 Delay 渲染 Loading
- Type:
boolean
- Default:
false
LoadingComponent
自定义 LoadingComponent
- Type:
Component|Function|string
- Default:
null
Authors
This library is written and maintained by imcuttle, [email protected]>.
License
MIT