fix: directoryTree support switcherIcon #1743

pull/1680/head
tangjinzhou 2020-02-06 15:08:14 +08:00
parent 2a304e0fbb
commit 4e6a3196e9
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,12 @@ import Tree, { TreeProps } from './Tree';
import { calcRangeKeys, getFullKeyList } from './util';
import Icon from '../icon';
import BaseMixin from '../_util/BaseMixin';
import { initDefaultProps, getOptionProps, getListeners } from '../_util/props-util';
import {
initDefaultProps,
getOptionProps,
getListeners,
getComponentFromProp,
} from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
// export type ExpandAction = false | 'click' | 'dblclick'; export interface
@ -195,6 +200,7 @@ export default {
prefixCls,
expandedKeys,
selectedKeys,
switcherIcon: getComponentFromProp(this, 'switcherIcon'),
},
ref: 'tree',
class: `${prefixCls}-directory`,