# react-ie8-loading

> react ie8 loading

Latest version **1.0.33** (published 2018-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-ie8-loading
pnpm add react-ie8-loading
yarn add react-ie8-loading
bun add react-ie8-loading
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.33 |
| Published | 2018-01-17 |
| First published | 2017-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | allen |
| Maintainers | allenouyang |
| Keywords | react, ie8, loading |

## Links

- npm: https://www.npmjs.com/package/react-ie8-loading
- Repository: https://10.172.94.171:10022/server/nop
- npm.io page: https://npm.io/package/react-ie8-loading

## Dependencies (10)

- [react](https://npm.io/package/react.md) ^0.14.3
- [core-js](https://npm.io/package/core-js.md) ^2.0.2
- [es5-shim](https://npm.io/package/es5-shim.md) ^4.4.1
- [react-dom](https://npm.io/package/react-dom.md) ^0.14.3
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.26.0
- [console-polyfill](https://npm.io/package/console-polyfill.md) ^0.2.2
- [es3ify-webpack-plugin](https://npm.io/package/es3ify-webpack-plugin.md) ^0.0.1
- [babel-plugin-transform-es3-property-literals](https://npm.io/package/babel-plugin-transform-es3-property-literals.md) ^6.22.0
- [babel-plugin-transform-es5-property-mutators](https://npm.io/package/babel-plugin-transform-es5-property-mutators.md) ^6.24.1
- [babel-plugin-transform-es3-member-expression-literals](https://npm.io/package/babel-plugin-transform-es3-member-expression-literals.md) ^6.22.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.33 (latest) — 2018-01-17
- 1.0.30 — 2018-01-17
- 1.0.29 — 2017-09-26
- 1.0.28 — 2017-09-26
- 1.0.27 — 2017-09-26
- 1.0.26 — 2017-09-26
- 1.0.25 — 2017-09-26
- 1.0.24 — 2017-09-26
- 1.0.23 — 2017-09-26
- 1.0.22 — 2017-09-26
- 1.0.21 — 2017-09-26
- 1.0.20 — 2017-09-26
- 1.0.19 — 2017-09-26
- 1.0.18 — 2017-09-26
- 1.0.17 — 2017-09-23
- … 14 more at https://npm.io/package/react-ie8-loading/versions

## README

### react-ie8-loading

- AnimateCpt 接受两个参数 
    -   show 参数显示隐藏bool类型
    -   defaultStyle 默认样式bool类型 「默认不显示」
- 自定义样式类名 「c__loading--size」
 ```jsx harmony
     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关闭

 ```jsx harmony
     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>
        )
     }
 ```

---
_Source: https://npm.io/package/react-ie8-loading · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
