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>
TYPE选择
balls
bars
beat
bubbles
cylon
spin
spiningDubbles
barsCylon
参考
https://jkchao.github.io/vue-loading/