element/packages/badge
2017-01-01 01:11:21 +08:00
..
src general: normalize name in default export 2017-01-01 01:11:21 +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-badge

A element-badge component for Vue.js.

Demo

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

Installation

npm i element-badge -D

Usage

import Vue from 'vue'
import ElBadge from 'element-badge'
import 'element-theme-default/dist/badge.css'

Vue.use(ElBadge)

or

import Vue from 'vue'
import ElBadge from 'element-badge'

Vue.component('el-badge', ElBadge)

Attributes

参数 说明 类型 可选值 默认值
value 显示值 string, number
max 最大值,超过最大值会显示 '{max}+',要求 value 是 Number 类型 number
is-dot 小圆点 boolean false

Development

make dev

## test
make test

## build
make build

License

MIT