Coder Social home page Coder Social logo

vue2stone's Introduction

vue2stone

npm JavaScript Style Guide

A Vue.js 2.0 Component library(by the way, add some common function)

Links

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.