1 | import _extends from 'babel-runtime/helpers/extends';
|
2 | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
3 | import Checkbox from './checkbox';
|
4 | import Group from './checkbox-group';
|
5 | import ConfigProvider from '../config-provider';
|
6 |
|
7 | Checkbox.Group = ConfigProvider.config(Group, {
|
8 | transform: function transform(props, deprecated) {
|
9 | if ('itemDirection' in props) {
|
10 | deprecated('itemDirection', 'direction', 'Checkbox');
|
11 |
|
12 | var _props = props,
|
13 | itemDirection = _props.itemDirection,
|
14 | others = _objectWithoutProperties(_props, ['itemDirection']);
|
15 |
|
16 | props = _extends({ direction: itemDirection }, others);
|
17 | }
|
18 |
|
19 | return props;
|
20 | }
|
21 | });
|
22 |
|
23 | export default Checkbox; |
\ | No newline at end of file |