UNPKG

570 BJavaScriptView Raw
1import ConfigProvider from '../config-provider';
2import Dropdown from './dropdown';
3
4export default ConfigProvider.config(Dropdown, {
5 transform: /* istanbul ignore next */function transform(props, deprecated) {
6 if ('triggerType' in props) {
7 var triggerType = Array.isArray(props.triggerType) ? [].concat(props.triggerType) : [props.triggerType];
8
9 if (triggerType.indexOf('focus') > -1) {
10 deprecated('triggerType[focus]', 'triggerType[hover, click]', 'Balloon');
11 }
12 }
13
14 return props;
15 }
16});
\No newline at end of file