1 | import _extends from 'babel-runtime/helpers/extends';
|
2 | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
3 | import ConfigProvider from '../config-provider';
|
4 | import Range from './view/range';
|
5 |
|
6 | export default ConfigProvider.config(Range, {
|
7 | transform: function transform(props, deprecated) {
|
8 | if ('hasTips' in props) {
|
9 | deprecated('hasTips', 'hasTip', 'Range');
|
10 |
|
11 | var _props = props,
|
12 | hasTips = _props.hasTips,
|
13 | others = _objectWithoutProperties(_props, ['hasTips']);
|
14 |
|
15 | props = _extends({ hasTip: hasTips }, others);
|
16 | }
|
17 |
|
18 | if ('tipFormatter' in props) {
|
19 | deprecated('tipFormatter', 'tipRender', 'Range');
|
20 |
|
21 | var _props2 = props,
|
22 | tipFormatter = _props2.tipFormatter,
|
23 | _others = _objectWithoutProperties(_props2, ['tipFormatter']);
|
24 |
|
25 | props = _extends({ tipRender: tipFormatter }, _others);
|
26 | }
|
27 |
|
28 | return props;
|
29 | }
|
30 | }); |
\ | No newline at end of file |