element/packages/tag
2016-12-16 10:57:54 +08:00
..
src support tag color property 2016-12-13 16:57:56 +08:00
cooking.conf.js Support publish component packages 2016-10-17 12:14:10 +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-tag

A element-tag component for Vue.js.

Demo

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

Installation

npm i element-tag -D

Usage

import Vue from 'vue'
import ElTag from 'element-tag'
import 'element-theme-default/dist/tag.css'

Vue.use(ElTag)

or

import Vue from 'vue'
import ElTag from 'element-tag'

Vue.component('el-tag', ElTag)

Attributes

参数 说明 类型 可选值 默认值
type 主题 string primary/gray/success/warning/danger
closable 是否可关闭 boolean false
close-transition 是否禁用关闭时的渐变动画 boolean false
hit 是否有边框描边 boolean false
color 背景色 string

Events

事件名称 说明 回调参数
close 关闭tag时触发的事件

Development

make dev

## test
make test

## build
make build

License

MIT