mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 10:27:22 +00:00
42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
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;
|
|
},
|
|
});
|