2.0.20 • Published 5 years ago
bee-button v2.0.20
button
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 | 是否禁用(disabled 或 true false) | boolean | false |
| bordered | 是否是边框型(bordered 或 true 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 dev2.0.20
5 years ago
2.0.16
6 years ago
2.0.19
6 years ago
2.0.17
6 years ago
2.0.18
6 years ago
2.0.12
6 years ago
2.0.11
6 years ago
2.0.10
7 years ago
2.0.10-alpha.0
7 years ago
2.0.9
7 years ago
2.0.8
7 years ago
2.0.7
7 years ago
2.0.6
7 years ago
2.0.5
7 years ago
2.0.4
7 years ago
2.0.3
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
2.0.0-alpha.2
7 years ago
2.0.0-alpha.1
7 years ago
2.0.0-alpha.0
7 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.2.9
8 years ago
0.2.8
8 years ago
0.2.7
8 years ago
0.2.6
9 years ago
0.2.5
9 years ago
0.2.4
9 years ago
0.2.3
9 years ago
0.2.2
9 years ago
0.2.1
9 years ago
0.2.0
9 years ago
0.1.12
9 years ago
0.1.11
9 years ago
0.1.10
9 years ago
0.1.9
9 years ago
0.1.8
9 years ago
0.1.7
9 years ago
0.1.6
9 years ago
0.1.5
9 years ago
0.1.4
9 years ago
0.1.3
9 years ago
0.1.2
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago