pass-time-label to time-label

This commit is contained in:
Timi
2026-10-21 00:26:45 +08:00
parent db0431fbd5
commit 60bbe90160
24 changed files with 53 additions and 53 deletions
+3 -3
View File
@@ -35,7 +35,7 @@
<t-cell title="变化后余额" :note="getPointText(ledger.balanceAfter)" />
<t-cell title="发生时间">
<template #note>
<pass-time-label :timestamp="ledger.occurredAt" underline />
<time-label :timestamp="ledger.occurredAt" underline />
</template>
</t-cell>
<t-cell title="流水备注" :note="Text.display(ledger.remark)" />
@@ -54,7 +54,7 @@
<t-cell title="登记事件" :note="eventRecord.event?.name || triggerEvent?.name || '未知事件'" />
<t-cell title="登记时间">
<template #note>
<pass-time-label :timestamp="eventRecord.registeredAt" underline />
<time-label :timestamp="eventRecord.registeredAt" underline />
</template>
</t-cell>
<t-cell v-if="hasEventNumberValue" title="事件数值" :note="getEventNumberValueText()" />
@@ -86,7 +86,7 @@
</template>
<script setup lang="ts">
import { PassTimeLabel, Text } from "timi-web";
import { TimeLabel, Text } from "timi-web";
import { useUserStore } from "timi-web-api";
import CustomerAPI from "@/api/CustomerAPI";
import EventAPI from "@/api/EventAPI";
+2 -2
View File
@@ -103,7 +103,7 @@
<div class="description">
<div>
<span>时间:</span>
<pass-time-label :timestamp="item.occurredAt" underline />
<time-label :timestamp="item.occurredAt" underline />
</div>
<div v-text="`余额:${formatPointValue(item.balanceBefore)} → ${formatPointValue(item.balanceAfter)}`" />
<div v-text="item.remark" />
@@ -152,7 +152,7 @@
<script setup lang="ts">
import type { DropdownValue } from "tdesign-mobile-vue";
import { PassTimeLabel, Toolkit } from "timi-web";
import { TimeLabel, Toolkit } from "timi-web";
import { type PageResult, useUserStore } from "timi-web-api";
import CustomerAPI from "@/api/CustomerAPI";
import PointAPI from "@/api/PointAPI";