loading
loading组件
npm install --save vue-load
import Loading from 'vue-load'
components: {Loading}
props:
showLoading //是否一开始就显示loading图标 默认为true
url //加载图标的地址 默认有一个加载图标
width/height //图标宽高 默认30*30
text //文本 默认为空
position: top | bottom //文本相对于图标位置
textStyle: {color:'#ccc'} //文本样式
methods:
show()
hide()