bee-tag
tinper-bee tag ui component for react
Last updated 6 months ago by tinper-bot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bee-tag 
SYNC missed versions from official npm registry.

bee-tag

npm version Build Status Coverage Status devDependency Status NPM downloads Average time to resolve an issue Percentage of issues still open

react bee-tag component for tinper-bee

可定制的标签组件

使用

使用单独的tag包

组件引入

先进行下载bee-tag包

npm install --save bee-button

组件调用

import Tag from 'bee-tag';
ReactDOM.render(
        <Tag style={{color: '#000'}}>Tag</Tag>
        , document.getElementById('target'));

样式引入

  • 可以使用link引入build目录下Tag.css
<link rel="stylesheet" href="./node_modules/bee-tag/build/Tag.css">
  • 可以在js中import样式
import "./node_modules/bee-tag/src/Tag.scss"

API

参数 说明 类型 默认值
colors 颜色(dark/light/success/warning/message/danger) string ''
disabled 是否禁用(disabledtrue false) boolean false
bordered 是否为边框类型(borderedtrue false) boolean false
deleted 是否可以删除(deletedtrue false) boolean false
visible 标签是否显示关闭图标(visibletrue false) boolean false
onClose 标签删除时的回调 (e) => void -
select 是否可以选择(selecttrue false) boolean false
className 增加额外的class string ''
style style 属性 object ''

开发调试

$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-tag
$ cd bee-tag
$ npm install
$ npm run dev

Current Tags

  • 0.0.4                                ...           latest (6 months ago)

4 Versions

  • 0.0.4                                ...           6 months ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Downloads
Today 0
This Week 27
This Month 307
Last Day 27
Last Week 219
Last Month 909
Dependencies (5)
Dev Dependencies (16)

Copyright 2014 - 2016 © taobao.org |