寫個vue-loading-template組件

趁着5.1來臨之際,告訴大家一個好消息:
javascript


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

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

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


Start

npm install vue-loading-template --save

Use in SPA

<template>
    <h2>bars</h2>
    <vue-loading type="bars" color="#d9544e" :size="{ width: '50px', height: '50px' }"><vue-loading>
 <template>
  <script>
  import vueLoading from 'vue-loading-template'
  export default {
    name: 'app',
    components: {
      vueLoading
    }
  }
  </script>
相關文章
相關標籤/搜索