vue-timers icon indicating copy to clipboard operation
vue-timers copied to clipboard

Documentation inconsistency: default for `time`

Open straightdave opened this issue 5 years ago • 1 comments

(Great stuff! Works perfectly in my case.)

One small thing in the document: the default of time is not 1000, but seems 0.

straightdave avatar Aug 02 '19 06:08 straightdave

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?

masongzhi avatar Sep 02 '19 02:09 masongzhi