From 897a0a8dcb0edd02bd6f3de3bd6febc84723051f Mon Sep 17 00:00:00 2001 From: Peng Zhong Date: Thu, 9 Feb 2017 14:25:42 +0800 Subject: [PATCH] update css class and readme --- README.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++- package.json | 2 +- src/index.vue | 20 +++++++++--------- src/style.css | 44 ++++++++++++++++++++-------------------- 4 files changed, 88 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 58ed838..4605f27 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,56 @@ # vue-button -Buttons for Vue. +Button component for Vue 2. + +## Installation + + npm install @nylira/vue-button + +## Usage + + + + + + + +## Props + + value="" + // The label of the button + // Options: Any valid string" + + icon="" + // If you're using FontAwesome, places an icon to the left of the label + // Options: Check http://fontawesome.io/icons + + icon-pos="" + // Move the icon to the right side instead of the left + // Options: "right" + + size="" + // Chanage the size of the button + // Options: "lg", "sm" + + theme="tendermint" + // Adds a custom button theme + // Options: "tendermint", "alpha-black" + + type="button" + // Button type (mainly used for HTML forms) + // Options: "button", "submit" diff --git a/package.json b/package.json index 107a70c..5de4ef3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nylira/vue-button", - "version": "1.6.3", + "version": "2.0.0", "description": "Button component for Vue 2.", "main": "index.js", "scripts": { diff --git a/src/index.vue b/src/index.vue index 5b72b78..dcfa0b1 100644 --- a/src/index.vue +++ b/src/index.vue @@ -1,23 +1,23 @@