feat(date-picker): readonly and disable handle

This commit is contained in:
Methapon Metanipat 2024-10-21 15:05:00 +07:00
parent 55a443521f
commit 65bb13837e

View file

@ -9,6 +9,7 @@ const model = defineModel<string | Date | null>();
const props = defineProps<{
id?: string;
readonly?: boolean;
disabled?: boolean;
clearable?: boolean;
label?: string;
bgColor?: string;
@ -59,7 +60,7 @@ function valueUpdate(value: string) {
auto-apply
:id
:for="id"
:disabled="readonly"
:disabled="readonly || disabled"
:disabled-dates="disabledDates"
:teleport="true"
:dark="$q.dark.isActive"
@ -78,7 +79,8 @@ function valueUpdate(value: string) {
:rules
:label
:for="id"
:readonly="readonly"
:readonly="readonly || disabled"
:disable="disabled"
:mask="readonly ? '' : '##/##/####'"
:model-value="
model