easy-loading

简单轻量级loading插件

Usage no npm install needed!

<script type="module">
  import easyLoading from 'https://cdn.skypack.dev/easy-loading';
</script>

README

easy-loading

项目介绍

Vue简单轻量级loading插件

安装教程

  1. npm i easy-loading -S
  2. 在入口文件main.js中导入 import easyLoading from 'easy-loading'
  3. 继续在main.js中挂载安装 Vue.use(easyLoading)

使用说明

  1. 在需要的地方调用(确保this指向正确) this.$loading.show() 默认显示文字为 正在加载中...
  2. 可以 this.$loading.show('玩命加载中') 传入自定义文字
  3. emmmmmm 勿喷