1 | import classnames from 'classnames';
|
2 | import React from 'react';
|
3 | import InputGroupAddon from 'bee-input-group-addon';
|
4 | import InputGroupButton from './InputGroupButton';
|
5 |
|
6 | const defaultProps = {
|
7 | clsPrefix: 'u-input-group',
|
8 | simple: false
|
9 | }
|
10 |
|
11 | class InputGroup extends React.Component {
|
12 | render() {
|
13 | const { className,clsPrefix, simple,...others } = this.props;
|
14 |
|
15 | return (
|
16 | <span
|
17 | {...others}
|
18 | className={classnames(className, clsPrefix, simple&&'simple')}
|
19 | />
|
20 | );
|
21 | }
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | InputGroup.Addon = InputGroupAddon;
|
28 | InputGroup.Button = InputGroupButton;
|
29 | InputGroup.defaultProps = defaultProps;
|
30 | export default InputGroup; |
\ | No newline at end of file |