feat:设备使用记录

This commit is contained in:
houjunxiang
2026-03-05 16:54:47 +08:00
parent 749ac7f507
commit 9c88c45d66
357 changed files with 21486 additions and 5845 deletions

View File

@@ -1,6 +1,7 @@
<template>
<view class="u-count-down">
<slot>
<slot :days="timeData.days" :hours="timeData.hours"
:minutes="timeData.minutes" :seconds="timeData.seconds">
<text class="u-count-down__text">{{ formattedTime }}</text>
</slot>
</view>
@@ -112,6 +113,7 @@
this.remainTime = remain
// 根据剩余的毫秒时间,得出该有天,小时,分钟等的值,返回一个对象
const timeData = parseTimeData(remain)
this.timeData = timeData;
this.$emit('change', timeData)
// 得出格式化后的时间
this.formattedTime = parseFormat(this.format, timeData)
@@ -151,7 +153,6 @@
lang="scss"
scoped
>
@import "../../libs/css/components.scss";
$u-count-down-text-color:$u-content-color !default;
$u-count-down-text-font-size:15px !default;
$u-count-down-text-line-height:22px !default;