写个vue-loading-template组件。

趁着5.1来临之际,告诉你们一个好消息:



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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,581评论 2 45
  • 这两日和多年的闺蜜贴身相处,经历了一件件小事,感觉闺蜜已不是记忆中的人。 我们 在美容院偶遇好朋友洁和她的朋友...
    皮儿米阅读 256评论 0 0
  • 记录平时用到的一些命令 进入命令模式按下Esc键,输入 : (注意是英文的冒号) 进入编辑插入模式按下** I *...
    Thresh0ld阅读 226评论 0 0
  • 此文章作为笔记,加深印象 一 先将需要加链接的图片放入图片空间 在图片空间里的这个图片上有个复制代码选项点一下 这...
    书海摸鱼儿阅读 1,122评论 0 1