0.0.3 • Published 7 years ago

vue2stone v0.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

vue2stone

npm JavaScript Style Guide

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

vue2stone

Future

more components , more friendly , more common function

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago