Elements

组件

计时器 Timer

Timer:计时器。等宽数字避免跳动,操作触发器沿用控件样式。部件:Root、Area、Control、Item、Separator、ActionTrigger、Context。单位标签是普通内容,不是状态机部件。

#基础用法

timer/basic Vue React
18
min
42
sec

#属性

#ActionTrigger

属性类型默认值描述
actionTimerAction—

#Area

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#Control

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#Item

属性类型默认值描述
typeTimePart—

#Root

属性类型默认值描述
autoStartboolean计时器是否自动启动
countdownboolean计时器是否倒计时,每次 tick 递减计时值
idstring组件内部状态机的唯一标识
idsPartial<{ root: string; area: string; }>计时器部件的 id
intervalnumber250更新计时器计数的间隔,单位毫秒
startMsnumber计时器总时长,单位毫秒
targetMsnumber计时器最小计数,单位毫秒
translationstimer.IntlTranslations无障碍元素及其状态的本地化文案

#Separator

纯造型的部件——自身没有属性,沿用部件结构的共享样式。