2.0.0 • Published 2 months ago

@rcp/c.loadingwrapper v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 months ago

@rcp/c.loadingwrapper

NPM version NPM Downloads

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, moyuyc95@gmail.com>.

License

MIT

2.0.0

2 months ago

1.0.12

2 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago