1. 程式人生 > >vue2.0 Loding組件(收集轉載)

vue2.0 Loding組件(收集轉載)

code emp com -- link cnblogs imp clas ner

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

源碼(star ? start : start):https://github.com/jkchao/vue-loading

組件支持:自定義type(暫時提供8種,具體請看demo);color;size;


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>

vue2.0 Loding組件(收集轉載)