Skip to content

Commit 4e6a319

Browse files
committed
fix: directoryTree support switcherIcon #1743
1 parent 2a304e0 commit 4e6a319

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/tree/DirectoryTree.jsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ import Tree, { TreeProps } from './Tree';
77
import { calcRangeKeys, getFullKeyList } from './util';
88
import Icon from '../icon';
99
import BaseMixin from '../_util/BaseMixin';
10-
import { initDefaultProps, getOptionProps, getListeners } from '../_util/props-util';
10+
import {
11+
initDefaultProps,
12+
getOptionProps,
13+
getListeners,
14+
getComponentFromProp,
15+
} from '../_util/props-util';
1116
import { ConfigConsumerProps } from '../config-provider';
1217

1318
// export type ExpandAction = false | 'click' | 'dblclick'; export interface
@@ -195,6 +200,7 @@ export default {
195200
prefixCls,
196201
expandedKeys,
197202
selectedKeys,
203+
switcherIcon: getComponentFromProp(this, 'switcherIcon'),
198204
},
199205
ref: 'tree',
200206
class: `${prefixCls}-directory`,

0 commit comments

Comments
 (0)