File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
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 {
@@ -152,10 +151,10 @@ const TreeSelect = defineComponent({
152
151
153
152
// showSearch: single - false, multiple - true
154
153
let { showSearch } = restProps ;
154
+ debugger ;
155
155
if ( ! ( 'showSearch' in restProps ) ) {
156
156
showSearch = ! ! ( restProps . multiple || restProps . treeCheckable ) ;
157
157
}
158
-
159
158
let checkable = getComponent ( this , 'treeCheckable' ) ;
160
159
if ( checkable ) {
161
160
checkable = < span class = { `${ prefixCls } -tree-checkbox-inner` } /> ;
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ const SearchInput = {
146
146
onKeydown = { onSearchInputKeyDown }
147
147
value = { searchValue }
148
148
disabled = { disabled }
149
+ readonly = { ! this . $attrs . showSearch }
149
150
class = { `${ prefixCls } -selection-search-input` }
150
151
aria-label = "filter select"
151
152
aria-autocomplete = "list"
You can’t perform that action at this time.
0 commit comments