code: function defaultData(vars, now) {
    const duration = vars.duration || vars.duration === 0 ? vars.duration : DEFAULT_DURATION;
    return {
      duration: vars.type === 'set' ? 0 : duration,
      delay: vars.delay || DEFAULT_DELAY,
      ease: typeof vars.ease === 'function' ? vars.ease : easingTypes[vars.ease || DEFAULT_EASING],
      onUpdate: vars.onUpdate || noop,
      onComplete: vars.onComplete || noop,
      onStart: vars.onStart || noop,
      onRepeat: vars.onRepeat || noop,
      repeat: vars.repeat || 0,
      repeatDelay: vars.repeatDelay || 0,
      yoyo: vars.yoyo || false,
      type: vars.type === 'from' ? 'from' : 'to',
      initTime: now,
      appearTo: typeof vars.appearTo === 'number' ? vars.appearTo : null,
      perTime: 0,
      currentRepeat: 0,
    };
  }
docs: 设置默认数据