mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-05 01:37:17 +00:00
23 lines
664 B
JavaScript
23 lines
664 B
JavaScript
import ConfigProvider from '../config-provider';
|
|
import Dropdown from './dropdown';
|
|
|
|
export default ConfigProvider.config(Dropdown, {
|
|
transform: /* istanbul ignore next */ (props, deprecated) => {
|
|
if ('triggerType' in props) {
|
|
const triggerType = Array.isArray(props.triggerType)
|
|
? [...props.triggerType]
|
|
: [props.triggerType];
|
|
|
|
if (triggerType.indexOf('focus') > -1) {
|
|
deprecated(
|
|
'triggerType[focus]',
|
|
'triggerType[hover, click]',
|
|
'Balloon'
|
|
);
|
|
}
|
|
}
|
|
|
|
return props;
|
|
},
|
|
});
|