Ported date control back to vuetify custom

This commit is contained in:
2020-11-30 19:04:03 +00:00
parent 78d114c662
commit fb7ee4a077
2 changed files with 85 additions and 105 deletions

View File

@@ -2,7 +2,7 @@
<v-row>
<template v-if="!readonly">
<v-col xs6>
<v-dialog ref="theDateDialog" v-model="dlgdate" width="290px">
<v-dialog v-model="dlgdate" width="290px">
<template v-slot:activator="{ on }">
<v-text-field
v-on="on"
@@ -18,7 +18,6 @@
</template>
<v-date-picker
:value="dateValue"
ref="dateField"
@input="updateDateValue"
:locale="defaultLocale"
:data-cy="'dpick:' + testId"
@@ -34,7 +33,7 @@
</v-dialog>
</v-col>
<v-col xs6>
<v-dialog ref="theTimeDialog" v-model="dlgtime" width="290px">
<v-dialog v-model="dlgtime" width="290px">
<template v-slot:activator="{ on }">
<v-text-field
v-on="on"
@@ -53,7 +52,6 @@
:format="hour12 ? 'ampm' : '24hr'"
:value="timeValue"
@input="updateTimeValue"
ref="timeField"
:data-cy="'tpick:' + testId"
>
<v-btn text color="primary" @click="$emit('input', null)">{{
@@ -106,7 +104,6 @@ export default {
},
testId: String
},
computed: {
timeValue() {
return window.$gz.locale.utcDateStringToLocal8601TimeOnlyString(