feat(date-picker): readonly and disable handle
This commit is contained in:
parent
55a443521f
commit
65bb13837e
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue