From 832521af9de401521b8e844cd7237a71b9458a46 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Tue, 15 Feb 2022 15:31:51 +0800 Subject: [PATCH] fix: update types --- src/components/DateCalendar.vue | 15 ++++++++------- src/components/TimePicker.vue | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/DateCalendar.vue b/src/components/DateCalendar.vue index 0b6b105b..c4c948f7 100755 --- a/src/components/DateCalendar.vue +++ b/src/components/DateCalendar.vue @@ -118,9 +118,9 @@ limitations under the License. --> v-for="(i, j) in local.months" @click=" is($event) && - ((state.showMonths = m === 'M'), + ((state.showMonths = state.m === 'M'), (state.month = j), - m === 'M' && ok('m')) + state.m === 'M' && ok('m')) " :class="[ status( @@ -142,7 +142,7 @@ limitations under the License. --> v-for="(i, j) in years" @click=" is($event) && - ((state.showYears = m === 'Y'), + ((state.showYears = state.m === 'Y'), (state.year = i), state.m === 'Y' && ok('y')) " @@ -278,6 +278,7 @@ limitations under the License. -->