wechat-loading
v1.0.5
Published
A loading similar to WeChat loading
Downloads
10
Readme
wechat-loading
Overview
A loading similar to WeChat loading
Install
Install wechat-loading
npm install wechat-loading
Import wechat-loading
// ES6
import wechatLoading from 'wechat-loading';
// commonjs
var wechatLoading = require("wechat-loading");
<script src="dist/wechatLoading.js"></script>
Usage
//default
wechatLoading.show();
//change loading text content
wechatLoading.show(tip);
wechatLoading.hide();
options
| Option | Description | default | type | acceptable values | | ------- | ---------------------- | ----------- | --------- | ------------------------ | | tip | loading text content | 数据加载中 | String | - |
LICENSE
MIT@chenyinkai