mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-02 15:27:18 +00:00
16 lines
570 B
JavaScript
16 lines
570 B
JavaScript
import ConfigProvider from '../config-provider';
|
|
import Dropdown from './dropdown';
|
|
|
|
export default ConfigProvider.config(Dropdown, {
|
|
transform: /* istanbul ignore next */function transform(props, deprecated) {
|
|
if ('triggerType' in props) {
|
|
var triggerType = Array.isArray(props.triggerType) ? [].concat(props.triggerType) : [props.triggerType];
|
|
|
|
if (triggerType.indexOf('focus') > -1) {
|
|
deprecated('triggerType[focus]', 'triggerType[hover, click]', 'Balloon');
|
|
}
|
|
}
|
|
|
|
return props;
|
|
}
|
|
}); |