fix:时间选择器组件 统一使用format

This commit is contained in:
zhangyu
2022-01-04 14:57:59 +08:00
parent 55203ef0ea
commit f50db242d4
11 changed files with 64 additions and 31 deletions

View File

@@ -38,7 +38,9 @@
<div class="datepicker-box">
<span class="datepicker-title">{{ $t("overall.startTime") }}</span>
<my-date-picker ref="calendar" v-model="editAlertSilence.startAt" :clearable="false" :placeholder="$t('dashboard.panel.startTime')"
align="right" class=" " :format="timeFormatStrToDatePickFormat(alertSilenceTime)"
align="right" class=" "
:value-format="timeFormatStrToDatePickFormat(alertSilenceTime)"
:format="timeFormatStrToDatePickFormat(alertSilenceTime)"
popper-class="panel-time-picker-popper right-box-select-top"
prefix-icon=" "
size="mini"
@@ -50,7 +52,9 @@
<div class="datepicker-box">
<span class="datepicker-title">{{ $t("overall.endTime") }}</span>
<my-date-picker ref="calendar" v-model="editAlertSilence.endAt" :clearable="false" :placeholder="$t('dashboard.panel.startTime')"
align="right" class=" " :format="timeFormatStrToDatePickFormat(alertSilenceTime)"
align="right" class=" "
:value-format="timeFormatStrToDatePickFormat(alertSilenceTime)"
:format="timeFormatStrToDatePickFormat(alertSilenceTime)"
popper-class="panel-time-picker-popper right-box-select-top"
prefix-icon=" "
size="mini"