1. 程式人生 > >vue-loading 8種元件

vue-loading 8種元件

Start 

npm install vue-loading-template --save

Use 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>

TYPE選擇

balls bars beat bubbles cylon spin spiningDubbles barsCylon

參考