mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-08 11:26:56 +08:00
feat: 更新时间显示组件和相关设置
- 在多个组件中引入 NTime 和 NTooltip 以优化时间显示 - 修改 ActionHistoryViewer.vue 和 CheckInSettings.vue 中的时间渲染逻辑 - 在 CheckInRankingView.vue 中实现时间的相对显示和格式化 - 修复商品页加载问题
This commit is contained in:
@@ -36,11 +36,15 @@ const columns = [
|
||||
width: 180,
|
||||
sorter: (a: HistoryItem, b: HistoryItem) => a.timestamp - b.timestamp,
|
||||
render: (row: HistoryItem) => {
|
||||
return h(NTime, {
|
||||
time: new Date(row.timestamp),
|
||||
format: 'yyyy-MM-dd HH:mm:ss'
|
||||
return h(NTooltip, {
|
||||
}, {
|
||||
trigger: () => h(NTime, {
|
||||
time: row.timestamp,
|
||||
type: 'relative'
|
||||
}),
|
||||
default: () => new Date(row.timestamp).toLocaleString()
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '操作名称',
|
||||
|
||||
Reference in New Issue
Block a user