1 | import ConfigProvider from '../config-provider';
|
2 | import Dropdown from './dropdown';
|
3 |
|
4 | export default ConfigProvider.config(Dropdown, {
|
5 | transform: 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 |