Package Exports
- bee-input-group-button
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bee-input-group-button) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
bee-input-group-button
InputGroupButton 作为FormControl的边按钮存在,比如提交按钮或者下拉按钮选项。
使用
使用单独的bee-input-group-button包
组件引入
先进行下载bee-input-group-button包
npm install --save bee-input-group-button
组件调用
import InputGroupButton from 'bee-input-group-button';
React.render(<div>
<InputGroupButton/>
</div>, document.getElementById('target'));
样式引入
- 可以使用link引入dist目录下bee-input-group-button.css
<link rel="stylesheet" href="./node_modules/build/bee-input-group-button.css">
- 可以在js中import样式
import "./node_modules/src/InputGroupButton.scss"
//或是
import "./node_modules/build/bee-input-group-button.css"
API
参数 | 说明 | 类型 | 默认值 |
---|
开发调试
$ git clone https://github.com/tinper-bee/bee-input-group-button
$ cd bee-input-group-button
$ npm install
$ npm run dev