vue-loading
npm install vue-loading-template---
Use SVG for loading.
Demo: https://jkchao.github.io/vue-loading/
``bash`
npm install vue-loading-template --save
| Prop | Type | Required | Default | Available values |
|---|---|---|---|---|
| type | String | false | balls | balls, bars, beat, bubbles, cylon, spin, spiningDubbles, barsCylon |
| color | String | false | #5ac1dd | |
| size | Object | false | { width: '30px', height: '30px' } |
`vue`
bars
Or you can install it in your main.js
`javascript`
// main.js
import Vue from 'vue'
import VueLoading from 'vue-loading-template'
Vue.use(VueLoading, / options /)
If you use it in TypeScript, you can:
`typescript
// main.ts
import Vue from 'vue'
import vueLoading, { VueLoadingOptions } from 'vue-loading-template'
Vue.use
``
so, you will receive the tip about optional options.

MIT