forked from alibaba-fusion/next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.jsx
41 lines (36 loc) · 1.33 KB
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import ConfigProvider from '../config-provider';
import CascaderSelect from './cascader-select';
export default ConfigProvider.config(CascaderSelect, {
transform: /* istanbul ignore next */ (props, deprecated) => {
if ('shape' in props) {
deprecated('shape', 'hasBorder', 'CascaderSelect');
const { shape, ...others } = props;
props = { hasBorder: shape !== 'arrow-only', ...others };
}
if ('container' in props) {
deprecated('container', 'popupContainer', 'CascaderSelect');
const { container, ...others } = props;
props = { popupContainer: container, ...others };
}
if ('expandTrigger' in props) {
deprecated('expandTrigger', 'expandTriggerType', 'CascaderSelect');
const { expandTrigger, ...others } = props;
props = { expandTriggerType: expandTrigger, ...others };
}
if ('showItemCount' in props) {
deprecated(
'showItemCount',
'listStyle | listClassName',
'CascaderSelect'
);
}
if ('labelWidth' in props) {
deprecated(
'labelWidth',
'listStyle | listClassName',
'CascaderSelect'
);
}
return props;
},
});