@varlet/ui 2.8.6-alpha.1678026101378 → 2.8.6-alpha.1678026868230

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,6 +40,7 @@ var __sfc__ = defineComponent({
40
40
  seconds: 0,
41
41
  milliseconds: 0
42
42
  });
43
+ var cacheIsStart;
43
44
 
44
45
  var parseFormat = (format, time) => {
45
46
  var scannedTimes = Object.values(time);
@@ -145,8 +146,21 @@ var __sfc__ = defineComponent({
145
146
  watch(() => props.time, reset, {
146
147
  immediate: true
147
148
  });
148
- onActivated(start);
149
- onDeactivated(pause);
149
+ onActivated(() => {
150
+ if (cacheIsStart == null) {
151
+ return;
152
+ }
153
+
154
+ isStart.value = cacheIsStart;
155
+
156
+ if (isStart.value === true) {
157
+ countdown();
158
+ }
159
+ });
160
+ onDeactivated(() => {
161
+ cacheIsStart = isStart.value;
162
+ pause();
163
+ });
150
164
  onUnmounted(pause);
151
165
  return {
152
166
  showTime,
@@ -235,7 +235,7 @@ import './time-picker/style/index.mjs'
235
235
  import './tooltip/style/index.mjs'
236
236
  import './uploader/style/index.mjs'
237
237
 
238
- const version = '2.8.6-alpha.1678026101378'
238
+ const version = '2.8.6-alpha.1678026868230'
239
239
 
240
240
  function install(app) {
241
241
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -156,7 +156,7 @@ export * from './time-picker/index.mjs'
156
156
  export * from './tooltip/index.mjs'
157
157
  export * from './uploader/index.mjs'
158
158
 
159
- const version = '2.8.6-alpha.1678026101378'
159
+ const version = '2.8.6-alpha.1678026868230'
160
160
 
161
161
  function install(app) {
162
162
  ActionSheet.install && app.use(ActionSheet)