vue-timers
vue-timers copied to clipboard
Documentation inconsistency: default for `time`
(Great stuff! Works perfectly in my case.)
One small thing in the document: the default of time
is not 1000
, but seems 0
.
yes, you find it
return {
name: config.name,
time: config.time || 0,
repeat: 'repeat' in config ? config.repeat : false,
immediate: 'immediate' in config ? config.immediate : false,
autostart: 'autostart' in config ? config.autostart : false,
isSwitchTab: 'isSwitchTab' in config ? config.isSwitchTab : false,
callback: (config.callback && config.callback.bind(vm)) || vm[config.name]
}
@Kelin2025 it should change the readme or code?