File tree 3 files changed +5
-3
lines changed
components/vc-tree-select/src
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ const Select = {
141
141
{
142
142
prefixCls : 'rc-tree-select' ,
143
143
prefixAria : 'rc-tree-select' ,
144
- showArrow : true ,
145
144
showSearch : true ,
146
145
autoClearSearchValue : true ,
147
146
showCheckedStrategy : SHOW_CHILD ,
Original file line number Diff line number Diff line change @@ -186,15 +186,16 @@ const MultipleSelector = {
186
186
} ,
187
187
188
188
render ( ) {
189
- const { $slots } = this ;
189
+ const { $slots, $props } = this ;
190
190
const listeners = getListeners ( this ) ;
191
+ const { showArrow = false } = $props ;
191
192
return (
192
193
< Selector
193
194
{ ...{
194
195
props : {
195
196
...this . $props ,
197
+ showArrow,
196
198
tabIndex : - 1 ,
197
- showArrow : false ,
198
199
renderSelection : this . renderSelection ,
199
200
renderPlaceholder : this . _renderPlaceholder ,
200
201
} ,
Original file line number Diff line number Diff line change @@ -42,9 +42,11 @@ const SingleSelector = {
42
42
} ,
43
43
44
44
render ( ) {
45
+ const { showArrow = true } = this . $props ;
45
46
const props = {
46
47
props : {
47
48
...getOptionProps ( this ) ,
49
+ showArrow,
48
50
renderSelection : this . renderSelection ,
49
51
} ,
50
52
on : getListeners ( this ) ,
You can’t perform that action at this time.
0 commit comments