1.0.33 • Published 7 years ago

react-ie8-loading v1.0.33

Weekly downloads
29
License
MIT
Repository
-
Last release
7 years ago

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__loading

  • react 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

7 years ago

1.0.30

7 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.3

8 years ago

1.0.0

8 years ago