写个 vue-loading-template 组件

趁着5.1来临之际,告诉大家一个好消息:
javascript


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

源码(star ? start : start):github.com/jkchao/vue-…java

组件支持:自定义type(暂时提供8种,具体请看demo);color;size;git


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>复制代码
相关文章
相关标签/搜索