vue-loading-template

vue-loading
63,454 465
Install
npm install vue-loading-template
Latest Version:1.3.2
Vue:2
License:ISC
Last Updated:Dec 22, 2018
Links: GitHub  ·  npm
Maintainer: vue-emoji

vue-loading-template


Use SVG for loading.

Demo: https://jkchao.github.io/vue-loading/

Start

npm install vue-loading-template --save

Options

Example in SPA

 <template>
    <div>
       <h2>bars</h2>
       <vue-loading type="bars" color="#d9544e" :size="{ width: '50px', height: '50px' }"></vue-loading>    
    </div>
 </template>
  <script>
  import { VueLoading } from 'vue-loading-template'
  export default {
    name: 'app',
    components: {
      VueLoading
    }
  }
  </script>

Or you can install it in your main.js

// main.js
import Vue from 'vue'
import VueLoading from 'vue-loading-template'
Vue.use(VueLoading, /** options **/)

If you use it in TypeScript, you can:

// main.ts
import Vue from 'vue'
import vueLoading, { VueLoadingOptions } from 'vue-loading-template'

Vue.use<VueLoadingOptions>(VueLoading, /** options **/)

so, you will receive the tip about optional options.

License

MIT

Related Packages

ey-template-vue3

vue3代码生成器

3,045
@ibiz-template/vue3

vue3代码生成器

2,984
vue-fun-loading

all kinds of loading components of vue

1,536 1
ajax-loading

a ajax-loading plugin for vue.js project

1,494

Version History

Version Released License
1.3.2 ISC
1.3.1 ISC
1.3.0 ISC
1.2.0 ISC
1.1.1 ISC