npm.io
1.0.3 • Published 8 years ago

vload

Licence
MIT
Version
1.0.3
Deps
1
Vulns
1
Weekly
0
Stars
5

vload

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

使用方式

// main.js
import vload from 'vload'
Vue.use(vload)

// js
this.$load.show()
this.$load.hide()

// 配置项
// 使用this.$load.show()方法,里面的参数有两种,显示load的文字,默认无
// 【字符串】this.$load.show('加载中...')
// 【对象】this.$load.show({title: 'loading', bgWrap: 'red', background: '#fff', stroke: 'rgba(255,120,12,1)', color: 'white'})
【可选配置】
设置 解释
title String 加载文字
bgWrap String 蒙版颜色
background String 加载框颜色
stroke String 加载器颜色
color String 文本颜色