Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bee-button

tinper-bee728MIT2.0.20

tinper-bee button ui component for react

react, react-component, bee-button, tinper, bee, button

readme

button

npm version Build Status Coverage Status

react button component for tinper-bee

可定制的按钮组件

使用

使用单独的button包

组件引入

先进行下载bee-button包

npm install --save bee-button

组件调用

import Button from 'bee-button';
ReactDOM.render(
        <Button type="primary" size="lg" style={{color: '#000'}}>Button</Button>
        , document.getElementById('target'));

样式引入

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

API

参数 说明 类型 默认值
size 按钮大小(lg xg md sm) string -
colors 颜色(primary/secondary/accent/success/info/warning/danger/dark/light/default) string ''
shape 形状(block/border/round/squared/floating/pillRight/pillLeft/icon) string ''
disabled 是否禁用(disabledtrue false) boolean false
bordered 是否是边框型(borderedtrue false) boolean false
className 增加额外的class string ''
htmlType html dom 的 type 属性(submit button reset) string button
style style 属性 object ''

setup develop environment

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

changelog

2.0.20 (2020-08-13)

Bug Fixes

Features

2.0.19 (2020-04-23)

Bug Fixes

  • attach changelog to github releases (e9d3ecc)

2.0.18 (2020-04-23)

Features

  • support auto deploy with github actions (d341aa6)

2.0.17 (2020-04-23)

Bug Fixes

  • use GITHUB_TOKEN for CONVENTIONAL_GITHUB_RELEASER_TOKEN (8194681)

2.0.16 (2020-04-23)

2.0.15 (2020-04-22)

2.0.14 (2020-04-22)

2.0.13 (2020-04-22)

2.0.12 (2020-04-22)

Features

2.0.11 (2019-05-16)

2.0.10 (2019-03-27)

2.0.9 (2019-03-13)

2.0.8 (2019-03-11)

2.0.7 (2019-03-07)

2.0.6 (2019-03-05)

2.0.5 (2019-03-02)

2.0.4 (2019-02-28)

2.0.3 (2019-02-26)

2.0.2 (2019-02-19)

2.0.1 (2019-02-18)

Bug Fixes

Features

  • bee-button: 增加 isSubmit props (a808ca1)