2.0.1 • Published 4 years ago

bee-form-group v2.0.1

Weekly downloads
119
License
MIT
Repository
github
Last release
4 years ago

bee-form-group

npm version Build Status Coverage Status

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

组件调用

import FormGroup from 'bee-form-group';
import FormControl from 'bee-form-control';
React.render(<div>
    <div>
		<FormGroup> 
			<FormControl type="text" />
		</FormGroup>
    </div>
</div>, document.getElementById('target'));

样式引入

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

API

参数说明类型默认值
validationStateoneOf:success error warningstring''
2.0.1

4 years ago

2.0.0

5 years ago

1.0.14

5 years ago

1.0.13

6 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago