refactor: add hideInput prop to SelectInput and SelectQuotation components for improved input visibility control
This commit is contained in:
parent
f777e50bd4
commit
ae21dc7ad7
2 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ const props = withDefaults(
|
|||
fillInput?: boolean;
|
||||
disable?: boolean;
|
||||
multiple?: boolean;
|
||||
hideInput?: boolean;
|
||||
|
||||
rules?: ((value: string) => string | true)[];
|
||||
}>(),
|
||||
|
|
@ -73,7 +74,7 @@ watch(
|
|||
outlined
|
||||
:clearable
|
||||
:disable
|
||||
use-input
|
||||
:use-input="!hideInput"
|
||||
emit-value
|
||||
map-options
|
||||
:multiple
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ function setDefaultValue() {
|
|||
:label
|
||||
:placeholder
|
||||
:readonly
|
||||
:hide-input="value !== ''"
|
||||
:disable="disabled"
|
||||
:option="selectOptions"
|
||||
:hide-selected="false"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue