mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 13:25:25 +00:00
fix date calendar
This commit is contained in:
parent
1deb6c3347
commit
28d32119a4
@ -247,7 +247,7 @@ limitations under the License. -->
|
|||||||
(state.showMinutes = state.showSeconds = false)
|
(state.showMinutes = state.showSeconds = false)
|
||||||
"
|
"
|
||||||
:class="{ on: state.showHours }"
|
:class="{ on: state.showHours }"
|
||||||
>{{ state.hour || dd }}</a
|
>{{ dd(state.hour) }}</a
|
||||||
>
|
>
|
||||||
<span>:</span>
|
<span>:</span>
|
||||||
<a
|
<a
|
||||||
@ -257,7 +257,7 @@ limitations under the License. -->
|
|||||||
(state.showHours = state.showSeconds = false)
|
(state.showHours = state.showSeconds = false)
|
||||||
"
|
"
|
||||||
:class="{ on: state.showMinutes }"
|
:class="{ on: state.showMinutes }"
|
||||||
>{{ state.minute || dd }}</a
|
>{{ dd(state.minute) }}</a
|
||||||
>
|
>
|
||||||
<span v-show="state.m !== 'D'">
|
<span v-show="state.m !== 'D'">
|
||||||
<span>:</span>
|
<span>:</span>
|
||||||
@ -268,7 +268,7 @@ limitations under the License. -->
|
|||||||
(state.showHours = state.showMinutes = false)
|
(state.showHours = state.showMinutes = false)
|
||||||
"
|
"
|
||||||
:class="{ on: state.showSeconds }"
|
:class="{ on: state.showSeconds }"
|
||||||
>{{ state.second || dd }}</a
|
>{{ dd(state.second) }}</a
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -464,7 +464,6 @@ const status = (
|
|||||||
const minutes = time.getMinutes();
|
const minutes = time.getMinutes();
|
||||||
const seconds = time.getSeconds();
|
const seconds = time.getSeconds();
|
||||||
const milliseconds = time.getMilliseconds();
|
const milliseconds = time.getMilliseconds();
|
||||||
const dd = (t: number) => `0${t}`.slice(-2);
|
|
||||||
const map: { [key: string]: string | number } = {
|
const map: { [key: string]: string | number } = {
|
||||||
YYYY: year,
|
YYYY: year,
|
||||||
MM: dd(month + 1),
|
MM: dd(month + 1),
|
||||||
|
Loading…
Reference in New Issue
Block a user