fix: directoryTree support switcherIcon #1743
parent
2a304e0fbb
commit
4e6a3196e9
|
@ -7,7 +7,12 @@ import Tree, { TreeProps } from './Tree';
|
||||||
import { calcRangeKeys, getFullKeyList } from './util';
|
import { calcRangeKeys, getFullKeyList } from './util';
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import BaseMixin from '../_util/BaseMixin';
|
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';
|
import { ConfigConsumerProps } from '../config-provider';
|
||||||
|
|
||||||
// export type ExpandAction = false | 'click' | 'dblclick'; export interface
|
// export type ExpandAction = false | 'click' | 'dblclick'; export interface
|
||||||
|
@ -195,6 +200,7 @@ export default {
|
||||||
prefixCls,
|
prefixCls,
|
||||||
expandedKeys,
|
expandedKeys,
|
||||||
selectedKeys,
|
selectedKeys,
|
||||||
|
switcherIcon: getComponentFromProp(this, 'switcherIcon'),
|
||||||
},
|
},
|
||||||
ref: 'tree',
|
ref: 'tree',
|
||||||
class: `${prefixCls}-directory`,
|
class: `${prefixCls}-directory`,
|
||||||
|
|
Loading…
Reference in New Issue