iter(g95): 统计数值支持倒计时模式

This commit is contained in:
HIsheR
2026-10-26 13:14:05 +08:00
parent 5e81cfe42b
commit 7e0612ef47
7 changed files with 57 additions and 12 deletions
+2 -1
View File
@@ -552,12 +552,13 @@ const content = h(
section(
'sec-statistic',
'统计数值',
'statistic:大号等宽数字 + 前后缀 + 环比趋势;value 变化时 400ms 缓出滚动(减弱动效偏好下直落终值)。',
'statistic:大号等宽数字 + 前后缀 + 环比趋势;value 变化时 400ms 缓出滚动(减弱动效偏好下直落终值);传 countdown 目标时间戳即变倒计时,到点自动停表。',
h(
'div',
{ class: 'row' },
statistic({ title: '本月 GMV', value: gmv, prefix: '¥', precision: 2, trend: 'up' }),
statistic({ title: '订单数', value: orders, suffix: '单', trend: 'down' }),
statistic({ title: '活动倒计时', countdown: Date.now() + 95 * 60 * 1000 }),
),
h(
'div',