iter(g95): 统计数值支持倒计时模式
This commit is contained in:
+2
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user