@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.
- package/es/countdown/Countdown.mjs +16 -2
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/varlet.esm.js +1336 -1332
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +15 -3
- package/package.json +6 -6
- package/umd/varlet.js +5 -5
|
@@ -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(
|
|
149
|
-
|
|
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,
|
package/es/index.bundle.mjs
CHANGED
|
@@ -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.
|
|
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.
|
|
159
|
+
const version = '2.8.6-alpha.1678026868230'
|
|
160
160
|
|
|
161
161
|
function install(app) {
|
|
162
162
|
ActionSheet.install && app.use(ActionSheet)
|