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;
|
fillInput?: boolean;
|
||||||
disable?: boolean;
|
disable?: boolean;
|
||||||
multiple?: boolean;
|
multiple?: boolean;
|
||||||
|
hideInput?: boolean;
|
||||||
|
|
||||||
rules?: ((value: string) => string | true)[];
|
rules?: ((value: string) => string | true)[];
|
||||||
}>(),
|
}>(),
|
||||||
|
|
@ -73,7 +74,7 @@ watch(
|
||||||
outlined
|
outlined
|
||||||
:clearable
|
:clearable
|
||||||
:disable
|
:disable
|
||||||
use-input
|
:use-input="!hideInput"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
:multiple
|
:multiple
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,7 @@ function setDefaultValue() {
|
||||||
:label
|
:label
|
||||||
:placeholder
|
:placeholder
|
||||||
:readonly
|
:readonly
|
||||||
|
:hide-input="value !== ''"
|
||||||
:disable="disabled"
|
:disable="disabled"
|
||||||
:option="selectOptions"
|
:option="selectOptions"
|
||||||
:hide-selected="false"
|
:hide-selected="false"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue