@@ -134,20 +134,23 @@ const TreeSelect = {
134
134
135
135
const clearIcon = < Icon type = "close-circle" class = { `${ prefixCls } -clear-icon` } theme = "filled" /> ;
136
136
const VcTreeSelectProps = {
137
- props : {
138
- switcherIcon : nodeProps => this . renderSwitcherIcon ( prefixCls , nodeProps ) ,
139
- inputIcon,
140
- removeIcon,
141
- clearIcon,
142
- ...rest ,
143
- getPopupContainer : getPopupContainer || getContextPopupContainer ,
144
- dropdownClassName : classNames ( dropdownClassName , `${ prefixCls } -tree-dropdown` ) ,
145
- prefixCls,
146
- dropdownStyle : { maxHeight : '100vh' , overflow : 'auto' , ...dropdownStyle } ,
147
- treeCheckable : checkable ,
148
- notFoundContent : notFoundContent || renderEmpty ( h , 'Select' ) ,
149
- __propsSymbol__ : Symbol ( ) ,
150
- } ,
137
+ props : Object . assign (
138
+ {
139
+ switcherIcon : nodeProps => this . renderSwitcherIcon ( prefixCls , nodeProps ) ,
140
+ inputIcon,
141
+ removeIcon,
142
+ clearIcon,
143
+ ...rest ,
144
+ getPopupContainer : getPopupContainer || getContextPopupContainer ,
145
+ dropdownClassName : classNames ( dropdownClassName , `${ prefixCls } -tree-dropdown` ) ,
146
+ prefixCls,
147
+ dropdownStyle : { maxHeight : '100vh' , overflow : 'auto' , ...dropdownStyle } ,
148
+ treeCheckable : checkable ,
149
+ notFoundContent : notFoundContent || renderEmpty ( h , 'Select' ) ,
150
+ __propsSymbol__ : Symbol ( ) ,
151
+ } ,
152
+ treeData ? { treeData } : { } ,
153
+ ) ,
151
154
class : cls ,
152
155
on : { ...this . $listeners , change : this . onChange } ,
153
156
ref : 'vcTreeSelect' ,
0 commit comments