A loading similar to WeChat loading
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>
//default
wechatLoading.show();
//change loading text content
wechatLoading.show(tip);
wechatLoading.hide();
Option | Description | default | type | acceptable values |
---|---|---|---|---|
tip | loading text content | 数据加载中 | String | - |
MIT@chenyinkai