# @beisen-platform/button-group

> 平台按钮分组组件

Latest version **0.1.39-rc.1** (published 2019-04-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @beisen-platform/button-group
pnpm add @beisen-platform/button-group
yarn add @beisen-platform/button-group
bun add @beisen-platform/button-group
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.39-rc.1 |
| Published | 2019-04-29 |
| First published | 2018-11-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | beisen |
| Maintainers | beisencorp |
| Keywords | beisen, react-component, es6 |

## Links

- npm: https://www.npmjs.com/package/@beisen-platform/button-group
- Repository: http://gitlab.beisencorp.com/ux-cnpm/ux-button-group
- npm.io page: https://npm.io/package/@beisen-platform/button-group

## Dependencies (3)

- [@beisen-platform/base-button](https://npm.io/package/@beisen-platform/base-button.md)
- [@beisen-platform/icon-button](https://npm.io/package/@beisen-platform/icon-button.md)
- [@beisen-platform/dropdown-button](https://npm.io/package/@beisen-platform/dropdown-button.md)

## Recent versions

- 0.1.39-rc.1 (latest) — 2019-04-29
- 0.1.39 — 2019-03-15
- 0.1.38 — 2018-11-29

## README

# ButtonGroup 使用说明

## 项目运行

1. cnpm install 或 npm install cnpm使用教程

2. npm run dev （开发环境打包 port:8080）

3. npm run test （测试用例）

4. npm run build （生产环境打包）

## ButtonGroup参数

```javascript
{
  children: [{
    /** 按钮名称，可以取以下值：
     *   'IconButton'（默认）
     *   'BaseButton'
     *   'DropDownButton'
     *   其实……实际上写BaseButton和DropDownButton以外的都是IconButton🤔
     */
    buttonName: 'IconButton',

    /** 具体的相应按钮组件的props */
    ...buttonProps
  },{
    buttonName: 'IconButton',
    ...buttonProps
  }]
}
```
Button的props文档：
 - [IconButton](http://gitlab.beisencorp.com/ux-cnpm/ux-icon-button/blob/master/README.md)
 - [BaseButton](http://gitlab.beisencorp.com/ux-cnpm/ux-base-button/blob/master/README.md)
 - [DropDownButton](http://gitlab.beisencorp.com/ux-cnpm/ux-icon-button/blob/master/README.md)

## ButtonGroup调用方法

1.安装npm组件包

```
npm install @beisen/button-group --save-dev
```

2.引用组件

  ```javascript
import ButtonGroup from "@beisen/button-group"
  ```


3. 传入参数

  该参数为上述参数，传入方式使用: {...参数}
  ```javascript
  render () {
      return (
        <ButtonGroup {...this.state.GroupData} />
      )
    }
  ```

---
_Source: https://npm.io/package/@beisen-platform/button-group · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
