趁着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>
<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>
本文介绍了一个基于Vue的加载组件库,提供了多种类型的加载动画,并支持自定义颜色和尺寸。通过简单示例展示了如何安装和使用该组件。
1396

被折叠的 条评论
为什么被折叠?



