File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ const TreeSelect = defineComponent({
26
26
props : initDefaultProps ( TreeSelectProps ( ) , {
27
27
transitionName : 'slide-up' ,
28
28
choiceTransitionName : '' ,
29
- showSearch : false ,
30
29
} ) ,
31
30
setup ( ) {
32
31
return {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const SearchInput = {
21
21
needAlign : PropTypes . looseBool ,
22
22
ariaId : PropTypes . string ,
23
23
isMultiple : PropTypes . looseBool . def ( true ) ,
24
+ showSearch : PropTypes . looseBool ,
24
25
} ,
25
26
emits : [ 'mirrorSearchValueChange' ] ,
26
27
setup ( props , { emit } ) {
@@ -126,6 +127,7 @@ const SearchInput = {
126
127
open,
127
128
ariaId,
128
129
isMultiple,
130
+ showSearch,
129
131
} = this . $props ;
130
132
const {
131
133
vcTreeSelect : { onSearchInputKeyDown } ,
@@ -146,6 +148,7 @@ const SearchInput = {
146
148
onKeydown = { onSearchInputKeyDown }
147
149
value = { searchValue }
148
150
disabled = { disabled }
151
+ readonly = { ! showSearch }
149
152
class = { `${ prefixCls } -selection-search-input` }
150
153
aria-label = "filter select"
151
154
aria-autocomplete = "list"
You can’t perform that action at this time.
0 commit comments