1.0.33 • Published 8 years ago
react-ie8-loading v1.0.33
react-ie8-loading
- AnimateCpt 接受两个参数
- show 参数显示隐藏bool类型
- defaultStyle 默认样式bool类型 「默认不显示」
自定义样式类名 「c__loading--size」
import { AnimateCpt } from 'react-ie8-loading'; import 'react-ie8-loading/lib/css/loading.css'; render () { return ( <div style={{position: 'relative', width: '200px', height:'200px'}} className="test--parents"> <AnimateCpt show={true} defaultStyle={true}/> </div> ) }
暂时不能使用
需要添加蒙版的父级元素添加class
js__loadingreact
componentDidMount阶段使用 init 初始化fullShow全屏显示fullClose全屏关闭fullTargetShow传入Dom显示fullTargetClose传入Dom关闭import {Loading} from 'react-ie8-loading' import 'react-ie8-loading/css/loading.css' componentDidMount () { Loading.init() } fullTargetShow () { Loading.fullTargetShow(document.querySelector('.trigger__target')) } fullTargetClose () { Loading.fullTargetClose(document.querySelector('.trigger__target')) } render () { return ( <div className="trigger__target js__loading"> 在显示的区域添加 js__loading 类名 </div> <button onClick={() => this.fullTargetShow()}>fullShow</button> <button onClick={() => this.fullTargetClose()}>fullClose</button> ) }
1.0.33
8 years ago
1.0.30
8 years ago
1.0.29
9 years ago
1.0.28
9 years ago
1.0.27
9 years ago
1.0.26
9 years ago
1.0.25
9 years ago
1.0.24
9 years ago
1.0.23
9 years ago
1.0.22
9 years ago
1.0.21
9 years ago
1.0.20
9 years ago
1.0.19
9 years ago
1.0.18
9 years ago
1.0.17
9 years ago
1.0.16
9 years ago
1.0.15
9 years ago
1.0.14
9 years ago
1.0.13
9 years ago
1.0.12
9 years ago
1.0.11
9 years ago
1.0.10
9 years ago
1.0.9
9 years ago
1.0.8
9 years ago
1.0.7
9 years ago
1.0.6
9 years ago
1.0.5
9 years ago
1.0.3
9 years ago
1.0.0
9 years ago