vue2stone
v0.0.3
Published
基于vue2.0的组件库
Downloads
7
Readme
vue2stone
A Vue.js 2.0 Component library(by the way, add some common function)
Links
- github
- npm
Install
npm install vue2stone -S
Quick Start
import vue2stone from 'vue2stone'
import Css from 'vue2stone/dist/vue2stone.min.css'
Vue.use(vue2stone)
How to use?
1.Progress bar
<s-progress :width="mywidth+'%'"></s-progress>
// mywidth is a string,That means the current progress
2.Star
<s-star :count="this.myCount" :max="5"></s-star>
// count meaning this star's number
// max meaning all star's number
3.Wait 1
<s-loading></s-loading>
4.Wait 2
<s-circle></s-circle>
5.Selector
<s-select :lists="['xiaoming', 'xiaohong']"></s-select>
// lists meaning a Array
8.Switch
<s-switch :inColor="'white'" :outColor="'black'"></s-switch>
// inColor is circle's color
// outColor is out's color
7.Toast
this.$toast.show({msg: 'this a toast'})
this.$toast.hide()
// maybe you need be careful msg's length
priview
Future
more components , more friendly , more common function