UNPKG

699 BJavaScriptView Raw
1import React, { Component } from 'react';
2import ReactDOM from 'react-dom';
3import PropTypes from 'prop-types';
4
5const propTypes = {
6 prefixCls: PropTypes.string,
7};
8const defaultProps = {
9 prefixCls:'u-form',
10};
11class FormItem extends Component {
12 constructor(props) {
13 super(props);
14 }
15 render() {
16 const {children,className = '',prefixCls,style , ...others} = this.props;
17 return (
18 <div className={`${prefixCls}-item`+' '+className } style={style} {...others}>
19 {children}
20 </div>
21 )
22 }
23};
24FormItem.propTypes = propTypes;
25FormItem.defaultProps = defaultProps;
26export default FormItem;
\No newline at end of file