bee-form-group
bee-form-group ui component for react
Last updated 6 months ago by tinper-bot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bee-form-group 
SYNC missed versions from official npm registry.

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

参数 说明 类型 默认值
validationState oneOf:success error warning string ''

Current Tags

  • 2.0.1                                ...           latest (6 months ago)

16 Versions

  • 2.0.1                                ...           6 months ago
  • 2.0.0                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           4 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 30
This Week 30
This Month 397
Last Day 4
Last Week 275
Last Month 1,217
Dependencies (3)
Dev Dependencies (11)

Copyright 2014 - 2017 © taobao.org |