element/packages/button
2016-12-16 10:57:54 +08:00
..
src support button autofocus && autofocus message box confirm button 2016-10-30 16:21:57 +08:00
_index.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
cooking.conf.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
index.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
package.json component README update and fix 2016-12-16 10:57:54 +08:00
README.md component README update and fix 2016-12-16 10:57:54 +08:00

element-button

A element-button component for Vue.js.

Demo

http://element-component.github.io/element-button

Installation

npm i element-button -D

Usage

import Vue from 'vue'
import ElButton from 'element-button'
import 'element-theme-default/dist/button.css'

Vue.use(ElButton)

or

import Vue from 'vue'
import { ElButton } from 'element-button'
import { ElButtonGroup } from 'element-button'

Vue.component('el-button', ElButton)
Vue.component('el-button-group', ElButtonGroup)

Attributes

参数 说明 类型 可选值 默认值
size 尺寸 string large,small,mini
type 类型 string primary,success,warning,danger,info,text
plain 是否朴素按钮 Boolean false
loading 是否加载中状态 Boolean false
disabled 是否禁用状态 boolean false
icon 图标,已有的图标库中的图标名 string
autofocus 是否默认聚焦 boolean false
native-type 原生 type 属性 string button,submit,reset button

Development

make dev

## test
make test

## build
make build

License

MIT