File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ const TreeSelect = defineComponent({
2626 props : initDefaultProps ( TreeSelectProps ( ) , {
2727 transitionName : 'slide-up' ,
2828 choiceTransitionName : '' ,
29- showSearch : false ,
3029 } ) ,
3130 setup ( ) {
3231 return {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const SearchInput = {
2121 needAlign : PropTypes . looseBool ,
2222 ariaId : PropTypes . string ,
2323 isMultiple : PropTypes . looseBool . def ( true ) ,
24+ showSearch : PropTypes . looseBool ,
2425 } ,
2526 emits : [ 'mirrorSearchValueChange' ] ,
2627 setup ( props , { emit } ) {
@@ -126,6 +127,7 @@ const SearchInput = {
126127 open,
127128 ariaId,
128129 isMultiple,
130+ showSearch,
129131 } = this . $props ;
130132 const {
131133 vcTreeSelect : { onSearchInputKeyDown } ,
@@ -146,6 +148,7 @@ const SearchInput = {
146148 onKeydown = { onSearchInputKeyDown }
147149 value = { searchValue }
148150 disabled = { disabled }
151+ readonly = { ! showSearch }
149152 class = { `${ prefixCls } -selection-search-input` }
150153 aria-label = "filter select"
151154 aria-autocomplete = "list"
You can’t perform that action at this time.
0 commit comments