refactor: add hideInput prop to SelectInput and SelectQuotation components for improved input visibility control

This commit is contained in:
puriphatt 2025-02-20 17:18:46 +07:00
parent f777e50bd4
commit ae21dc7ad7
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -108,6 +108,7 @@ function setDefaultValue() {
:label
:placeholder
:readonly
:hide-input="value !== ''"
:disable="disabled"
:option="selectOptions"
:hide-selected="false"