Skip to content

Commit

Permalink
fix: directoryTree support switcherIcon #1743
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Feb 6, 2020
1 parent 2a304e0 commit 4e6a319
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/tree/DirectoryTree.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -195,6 +200,7 @@ export default {
prefixCls,
expandedKeys,
selectedKeys,
switcherIcon: getComponentFromProp(this, 'switcherIcon'),
},
ref: 'tree',
class: `${prefixCls}-directory`,
Expand Down

0 comments on commit 4e6a319

Please sign in to comment.