bee-form-group
FormGroup
组件用来包裹像 form control
lable
help text
validate state
的元素
安装步骤
$ git clone https://github.com/tinper-bee/bee-form-group$ cd bee-form-group$ npm install$ npm run dev
使用
使用单独的bee-form-group包
组件引入
先进行下载bee-form-group包
npm install --save bee-form-group
组件调用
;;React;
样式引入
- 可以使用link引入dist目录下bee-form-group.css
<link rel="stylesheet" href="./node_modules/build/bee-form-group.css">
- 可以在js中import样式
//或是
API
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
validationState | oneOf:success error warning |
string | '' |