Socket
Book a DemoInstallSign in
Socket

vue2stone

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue2stone

基于vue2.0的组件库

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

vue2stone

npm JavaScript Style Guide

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

  • 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

FAQs

Package last updated on 08 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts