@vue/runtime-core 3.5.1 → 3.5.3
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/dist/runtime-core.cjs.js +64 -38
- package/dist/runtime-core.cjs.prod.js +54 -31
- package/dist/runtime-core.d.ts +13 -8
- package/dist/runtime-core.esm-bundler.js +65 -39
- package/package.json +3 -3
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -312,9 +312,7 @@ function queueJob(job) {
|
|
|
312
312
|
} else {
|
|
313
313
|
queue.splice(findInsertionIndex(jobId), 0, job);
|
|
314
314
|
}
|
|
315
|
-
|
|
316
|
-
job.flags |= 1;
|
|
317
|
-
}
|
|
315
|
+
job.flags |= 1;
|
|
318
316
|
queueFlush();
|
|
319
317
|
}
|
|
320
318
|
}
|
|
@@ -330,9 +328,7 @@ function queuePostFlushCb(cb) {
|
|
|
330
328
|
activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
|
|
331
329
|
} else if (!(cb.flags & 1)) {
|
|
332
330
|
pendingPostFlushCbs.push(cb);
|
|
333
|
-
|
|
334
|
-
cb.flags |= 1;
|
|
335
|
-
}
|
|
331
|
+
cb.flags |= 1;
|
|
336
332
|
}
|
|
337
333
|
} else {
|
|
338
334
|
pendingPostFlushCbs.push(...cb);
|
|
@@ -354,6 +350,9 @@ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
|
354
350
|
}
|
|
355
351
|
queue.splice(i, 1);
|
|
356
352
|
i--;
|
|
353
|
+
if (cb.flags & 4) {
|
|
354
|
+
cb.flags &= ~1;
|
|
355
|
+
}
|
|
357
356
|
cb();
|
|
358
357
|
cb.flags &= ~1;
|
|
359
358
|
}
|
|
@@ -378,6 +377,9 @@ function flushPostFlushCbs(seen) {
|
|
|
378
377
|
if (checkRecursiveUpdates(seen, cb)) {
|
|
379
378
|
continue;
|
|
380
379
|
}
|
|
380
|
+
if (cb.flags & 4) {
|
|
381
|
+
cb.flags &= ~1;
|
|
382
|
+
}
|
|
381
383
|
if (!(cb.flags & 8)) cb();
|
|
382
384
|
cb.flags &= ~1;
|
|
383
385
|
}
|
|
@@ -400,6 +402,9 @@ function flushJobs(seen) {
|
|
|
400
402
|
if (check(job)) {
|
|
401
403
|
continue;
|
|
402
404
|
}
|
|
405
|
+
if (job.flags & 4) {
|
|
406
|
+
job.flags &= ~1;
|
|
407
|
+
}
|
|
403
408
|
callWithErrorHandling(
|
|
404
409
|
job,
|
|
405
410
|
job.i,
|
|
@@ -409,6 +414,12 @@ function flushJobs(seen) {
|
|
|
409
414
|
}
|
|
410
415
|
}
|
|
411
416
|
} finally {
|
|
417
|
+
for (; flushIndex < queue.length; flushIndex++) {
|
|
418
|
+
const job = queue[flushIndex];
|
|
419
|
+
if (job) {
|
|
420
|
+
job.flags &= ~1;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
412
423
|
flushIndex = 0;
|
|
413
424
|
queue.length = 0;
|
|
414
425
|
flushPostFlushCbs(seen);
|
|
@@ -1165,6 +1176,7 @@ const BaseTransitionImpl = {
|
|
|
1165
1176
|
if (!(instance.job.flags & 8)) {
|
|
1166
1177
|
instance.update();
|
|
1167
1178
|
}
|
|
1179
|
+
delete leavingHooks.afterLeave;
|
|
1168
1180
|
};
|
|
1169
1181
|
return emptyPlaceholder(child);
|
|
1170
1182
|
} else if (mode === "in-out" && innerChild.type !== Comment) {
|
|
@@ -1387,6 +1399,7 @@ function getInnerChild$1(vnode) {
|
|
|
1387
1399
|
}
|
|
1388
1400
|
function setTransitionHooks(vnode, hooks) {
|
|
1389
1401
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
1402
|
+
vnode.transition = hooks;
|
|
1390
1403
|
setTransitionHooks(vnode.component.subTree, hooks);
|
|
1391
1404
|
} else if (vnode.shapeFlag & 128) {
|
|
1392
1405
|
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
@@ -1431,7 +1444,7 @@ function defineComponent(options, extraOptions) {
|
|
|
1431
1444
|
function useId() {
|
|
1432
1445
|
const i = getCurrentInstance();
|
|
1433
1446
|
if (i) {
|
|
1434
|
-
return (i.appContext.config.idPrefix || "v") + "
|
|
1447
|
+
return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
|
|
1435
1448
|
} else {
|
|
1436
1449
|
warn$1(
|
|
1437
1450
|
`useId() is called when there is no active component instance to be associated with.`
|
|
@@ -1442,6 +1455,34 @@ function markAsyncBoundary(instance) {
|
|
|
1442
1455
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
1443
1456
|
}
|
|
1444
1457
|
|
|
1458
|
+
const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
|
|
1459
|
+
function useTemplateRef(key) {
|
|
1460
|
+
const i = getCurrentInstance();
|
|
1461
|
+
const r = reactivity.shallowRef(null);
|
|
1462
|
+
if (i) {
|
|
1463
|
+
const refs = i.refs === shared.EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
1464
|
+
let desc;
|
|
1465
|
+
if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
|
|
1466
|
+
warn$1(`useTemplateRef('${key}') already exists.`);
|
|
1467
|
+
} else {
|
|
1468
|
+
Object.defineProperty(refs, key, {
|
|
1469
|
+
enumerable: true,
|
|
1470
|
+
get: () => r.value,
|
|
1471
|
+
set: (val) => r.value = val
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
} else {
|
|
1475
|
+
warn$1(
|
|
1476
|
+
`useTemplateRef() is called when there is no active component instance to be associated with.`
|
|
1477
|
+
);
|
|
1478
|
+
}
|
|
1479
|
+
const ret = reactivity.readonly(r) ;
|
|
1480
|
+
{
|
|
1481
|
+
knownTemplateRefs.add(ret);
|
|
1482
|
+
}
|
|
1483
|
+
return ret;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1445
1486
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
1446
1487
|
if (shared.isArray(rawRef)) {
|
|
1447
1488
|
rawRef.forEach(
|
|
@@ -1470,7 +1511,13 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
1470
1511
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
1471
1512
|
const refs = owner.refs === shared.EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
1472
1513
|
const setupState = owner.setupState;
|
|
1473
|
-
const
|
|
1514
|
+
const rawSetupState = reactivity.toRaw(setupState);
|
|
1515
|
+
const canSetSetupRef = setupState === shared.EMPTY_OBJ ? () => false : (key) => {
|
|
1516
|
+
if (knownTemplateRefs.has(rawSetupState[key])) {
|
|
1517
|
+
return false;
|
|
1518
|
+
}
|
|
1519
|
+
return shared.hasOwn(rawSetupState, key);
|
|
1520
|
+
};
|
|
1474
1521
|
if (oldRef != null && oldRef !== ref) {
|
|
1475
1522
|
if (shared.isString(oldRef)) {
|
|
1476
1523
|
refs[oldRef] = null;
|
|
@@ -2527,7 +2574,7 @@ const KeepAliveImpl = {
|
|
|
2527
2574
|
return () => {
|
|
2528
2575
|
pendingCacheKey = null;
|
|
2529
2576
|
if (!slots.default) {
|
|
2530
|
-
return null;
|
|
2577
|
+
return current = null;
|
|
2531
2578
|
}
|
|
2532
2579
|
const children = slots.default();
|
|
2533
2580
|
const rawVNode = children[0];
|
|
@@ -5113,7 +5160,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5113
5160
|
endMeasure(instance, `hydrate`);
|
|
5114
5161
|
}
|
|
5115
5162
|
};
|
|
5116
|
-
if (isAsyncWrapperVNode) {
|
|
5163
|
+
if (isAsyncWrapperVNode && type.__asyncHydrate) {
|
|
5117
5164
|
type.__asyncHydrate(
|
|
5118
5165
|
el,
|
|
5119
5166
|
instance,
|
|
@@ -6404,7 +6451,7 @@ function renderComponentRoot(instance) {
|
|
|
6404
6451
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
6405
6452
|
);
|
|
6406
6453
|
}
|
|
6407
|
-
root
|
|
6454
|
+
setTransitionHooks(root, vnode.transition);
|
|
6408
6455
|
}
|
|
6409
6456
|
if (setRoot) {
|
|
6410
6457
|
setRoot(root);
|
|
@@ -6898,7 +6945,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
6898
6945
|
};
|
|
6899
6946
|
}
|
|
6900
6947
|
if (activeBranch) {
|
|
6901
|
-
if (parentNode(activeBranch.el)
|
|
6948
|
+
if (parentNode(activeBranch.el) === container2) {
|
|
6902
6949
|
anchor = next(activeBranch);
|
|
6903
6950
|
}
|
|
6904
6951
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
@@ -7959,29 +8006,6 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
7959
8006
|
return c;
|
|
7960
8007
|
};
|
|
7961
8008
|
|
|
7962
|
-
function useTemplateRef(key) {
|
|
7963
|
-
const i = getCurrentInstance();
|
|
7964
|
-
const r = reactivity.shallowRef(null);
|
|
7965
|
-
if (i) {
|
|
7966
|
-
const refs = i.refs === shared.EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
7967
|
-
let desc;
|
|
7968
|
-
if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
|
|
7969
|
-
warn$1(`useTemplateRef('${key}') already exists.`);
|
|
7970
|
-
} else {
|
|
7971
|
-
Object.defineProperty(refs, key, {
|
|
7972
|
-
enumerable: true,
|
|
7973
|
-
get: () => r.value,
|
|
7974
|
-
set: (val) => r.value = val
|
|
7975
|
-
});
|
|
7976
|
-
}
|
|
7977
|
-
} else {
|
|
7978
|
-
warn$1(
|
|
7979
|
-
`useTemplateRef() is called when there is no active component instance to be associated with.`
|
|
7980
|
-
);
|
|
7981
|
-
}
|
|
7982
|
-
return reactivity.readonly(r) ;
|
|
7983
|
-
}
|
|
7984
|
-
|
|
7985
8009
|
function h(type, propsOrChildren, children) {
|
|
7986
8010
|
const l = arguments.length;
|
|
7987
8011
|
if (l === 2) {
|
|
@@ -8207,7 +8231,7 @@ function isMemoSame(cached, memo) {
|
|
|
8207
8231
|
return true;
|
|
8208
8232
|
}
|
|
8209
8233
|
|
|
8210
|
-
const version = "3.5.
|
|
8234
|
+
const version = "3.5.3";
|
|
8211
8235
|
const warn = warn$1 ;
|
|
8212
8236
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8213
8237
|
const devtools = devtools$1 ;
|
|
@@ -8220,7 +8244,9 @@ const _ssrUtils = {
|
|
|
8220
8244
|
isVNode: isVNode,
|
|
8221
8245
|
normalizeVNode,
|
|
8222
8246
|
getComponentPublicInstance,
|
|
8223
|
-
ensureValidVNode
|
|
8247
|
+
ensureValidVNode,
|
|
8248
|
+
pushWarningContext,
|
|
8249
|
+
popWarningContext
|
|
8224
8250
|
};
|
|
8225
8251
|
const ssrUtils = _ssrUtils ;
|
|
8226
8252
|
const resolveFilter = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -10,6 +10,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
var reactivity = require('@vue/reactivity');
|
|
11
11
|
var shared = require('@vue/shared');
|
|
12
12
|
|
|
13
|
+
function pushWarningContext(vnode) {
|
|
14
|
+
}
|
|
15
|
+
function popWarningContext() {
|
|
16
|
+
}
|
|
13
17
|
function assertNumber(val, type) {
|
|
14
18
|
return;
|
|
15
19
|
}
|
|
@@ -179,9 +183,7 @@ function queueJob(job) {
|
|
|
179
183
|
} else {
|
|
180
184
|
queue.splice(findInsertionIndex(jobId), 0, job);
|
|
181
185
|
}
|
|
182
|
-
|
|
183
|
-
job.flags |= 1;
|
|
184
|
-
}
|
|
186
|
+
job.flags |= 1;
|
|
185
187
|
queueFlush();
|
|
186
188
|
}
|
|
187
189
|
}
|
|
@@ -197,9 +199,7 @@ function queuePostFlushCb(cb) {
|
|
|
197
199
|
activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
|
|
198
200
|
} else if (!(cb.flags & 1)) {
|
|
199
201
|
pendingPostFlushCbs.push(cb);
|
|
200
|
-
|
|
201
|
-
cb.flags |= 1;
|
|
202
|
-
}
|
|
202
|
+
cb.flags |= 1;
|
|
203
203
|
}
|
|
204
204
|
} else {
|
|
205
205
|
pendingPostFlushCbs.push(...cb);
|
|
@@ -215,6 +215,9 @@ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
|
215
215
|
}
|
|
216
216
|
queue.splice(i, 1);
|
|
217
217
|
i--;
|
|
218
|
+
if (cb.flags & 4) {
|
|
219
|
+
cb.flags &= ~1;
|
|
220
|
+
}
|
|
218
221
|
cb();
|
|
219
222
|
cb.flags &= ~1;
|
|
220
223
|
}
|
|
@@ -233,6 +236,9 @@ function flushPostFlushCbs(seen) {
|
|
|
233
236
|
activePostFlushCbs = deduped;
|
|
234
237
|
for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
|
|
235
238
|
const cb = activePostFlushCbs[postFlushIndex];
|
|
239
|
+
if (cb.flags & 4) {
|
|
240
|
+
cb.flags &= ~1;
|
|
241
|
+
}
|
|
236
242
|
if (!(cb.flags & 8)) cb();
|
|
237
243
|
cb.flags &= ~1;
|
|
238
244
|
}
|
|
@@ -249,6 +255,9 @@ function flushJobs(seen) {
|
|
|
249
255
|
const job = queue[flushIndex];
|
|
250
256
|
if (job && !(job.flags & 8)) {
|
|
251
257
|
if (false) ;
|
|
258
|
+
if (job.flags & 4) {
|
|
259
|
+
job.flags &= ~1;
|
|
260
|
+
}
|
|
252
261
|
callWithErrorHandling(
|
|
253
262
|
job,
|
|
254
263
|
job.i,
|
|
@@ -258,6 +267,12 @@ function flushJobs(seen) {
|
|
|
258
267
|
}
|
|
259
268
|
}
|
|
260
269
|
} finally {
|
|
270
|
+
for (; flushIndex < queue.length; flushIndex++) {
|
|
271
|
+
const job = queue[flushIndex];
|
|
272
|
+
if (job) {
|
|
273
|
+
job.flags &= ~1;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
261
276
|
flushIndex = 0;
|
|
262
277
|
queue.length = 0;
|
|
263
278
|
flushPostFlushCbs();
|
|
@@ -743,6 +758,7 @@ const BaseTransitionImpl = {
|
|
|
743
758
|
if (!(instance.job.flags & 8)) {
|
|
744
759
|
instance.update();
|
|
745
760
|
}
|
|
761
|
+
delete leavingHooks.afterLeave;
|
|
746
762
|
};
|
|
747
763
|
return emptyPlaceholder(child);
|
|
748
764
|
} else if (mode === "in-out" && innerChild.type !== Comment) {
|
|
@@ -955,6 +971,7 @@ function getInnerChild$1(vnode) {
|
|
|
955
971
|
}
|
|
956
972
|
function setTransitionHooks(vnode, hooks) {
|
|
957
973
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
974
|
+
vnode.transition = hooks;
|
|
958
975
|
setTransitionHooks(vnode.component.subTree, hooks);
|
|
959
976
|
} else if (vnode.shapeFlag & 128) {
|
|
960
977
|
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
@@ -999,13 +1016,30 @@ function defineComponent(options, extraOptions) {
|
|
|
999
1016
|
function useId() {
|
|
1000
1017
|
const i = getCurrentInstance();
|
|
1001
1018
|
if (i) {
|
|
1002
|
-
return (i.appContext.config.idPrefix || "v") + "
|
|
1019
|
+
return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
|
|
1003
1020
|
}
|
|
1004
1021
|
}
|
|
1005
1022
|
function markAsyncBoundary(instance) {
|
|
1006
1023
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
1007
1024
|
}
|
|
1008
1025
|
|
|
1026
|
+
function useTemplateRef(key) {
|
|
1027
|
+
const i = getCurrentInstance();
|
|
1028
|
+
const r = reactivity.shallowRef(null);
|
|
1029
|
+
if (i) {
|
|
1030
|
+
const refs = i.refs === shared.EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
1031
|
+
{
|
|
1032
|
+
Object.defineProperty(refs, key, {
|
|
1033
|
+
enumerable: true,
|
|
1034
|
+
get: () => r.value,
|
|
1035
|
+
set: (val) => r.value = val
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
const ret = r;
|
|
1040
|
+
return ret;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1009
1043
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
1010
1044
|
if (shared.isArray(rawRef)) {
|
|
1011
1045
|
rawRef.forEach(
|
|
@@ -1028,7 +1062,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
1028
1062
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
1029
1063
|
const refs = owner.refs === shared.EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
1030
1064
|
const setupState = owner.setupState;
|
|
1031
|
-
const
|
|
1065
|
+
const rawSetupState = reactivity.toRaw(setupState);
|
|
1066
|
+
const canSetSetupRef = setupState === shared.EMPTY_OBJ ? () => false : (key) => {
|
|
1067
|
+
return shared.hasOwn(rawSetupState, key);
|
|
1068
|
+
};
|
|
1032
1069
|
if (oldRef != null && oldRef !== ref) {
|
|
1033
1070
|
if (shared.isString(oldRef)) {
|
|
1034
1071
|
refs[oldRef] = null;
|
|
@@ -1896,7 +1933,7 @@ const KeepAliveImpl = {
|
|
|
1896
1933
|
return () => {
|
|
1897
1934
|
pendingCacheKey = null;
|
|
1898
1935
|
if (!slots.default) {
|
|
1899
|
-
return null;
|
|
1936
|
+
return current = null;
|
|
1900
1937
|
}
|
|
1901
1938
|
const children = slots.default();
|
|
1902
1939
|
const rawVNode = children[0];
|
|
@@ -3896,7 +3933,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3896
3933
|
null
|
|
3897
3934
|
);
|
|
3898
3935
|
};
|
|
3899
|
-
if (isAsyncWrapperVNode) {
|
|
3936
|
+
if (isAsyncWrapperVNode && type.__asyncHydrate) {
|
|
3900
3937
|
type.__asyncHydrate(
|
|
3901
3938
|
el,
|
|
3902
3939
|
instance,
|
|
@@ -5001,7 +5038,7 @@ function renderComponentRoot(instance) {
|
|
|
5001
5038
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
5002
5039
|
}
|
|
5003
5040
|
if (vnode.transition) {
|
|
5004
|
-
root
|
|
5041
|
+
setTransitionHooks(root, vnode.transition);
|
|
5005
5042
|
}
|
|
5006
5043
|
{
|
|
5007
5044
|
result = root;
|
|
@@ -5439,7 +5476,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
5439
5476
|
};
|
|
5440
5477
|
}
|
|
5441
5478
|
if (activeBranch) {
|
|
5442
|
-
if (parentNode(activeBranch.el)
|
|
5479
|
+
if (parentNode(activeBranch.el) === container2) {
|
|
5443
5480
|
anchor = next(activeBranch);
|
|
5444
5481
|
}
|
|
5445
5482
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
@@ -6309,22 +6346,6 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
6309
6346
|
return c;
|
|
6310
6347
|
};
|
|
6311
6348
|
|
|
6312
|
-
function useTemplateRef(key) {
|
|
6313
|
-
const i = getCurrentInstance();
|
|
6314
|
-
const r = reactivity.shallowRef(null);
|
|
6315
|
-
if (i) {
|
|
6316
|
-
const refs = i.refs === shared.EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
6317
|
-
{
|
|
6318
|
-
Object.defineProperty(refs, key, {
|
|
6319
|
-
enumerable: true,
|
|
6320
|
-
get: () => r.value,
|
|
6321
|
-
set: (val) => r.value = val
|
|
6322
|
-
});
|
|
6323
|
-
}
|
|
6324
|
-
}
|
|
6325
|
-
return r;
|
|
6326
|
-
}
|
|
6327
|
-
|
|
6328
6349
|
function h(type, propsOrChildren, children) {
|
|
6329
6350
|
const l = arguments.length;
|
|
6330
6351
|
if (l === 2) {
|
|
@@ -6378,7 +6399,7 @@ function isMemoSame(cached, memo) {
|
|
|
6378
6399
|
return true;
|
|
6379
6400
|
}
|
|
6380
6401
|
|
|
6381
|
-
const version = "3.5.
|
|
6402
|
+
const version = "3.5.3";
|
|
6382
6403
|
const warn$1 = shared.NOOP;
|
|
6383
6404
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6384
6405
|
const devtools = void 0;
|
|
@@ -6391,7 +6412,9 @@ const _ssrUtils = {
|
|
|
6391
6412
|
isVNode: isVNode,
|
|
6392
6413
|
normalizeVNode,
|
|
6393
6414
|
getComponentPublicInstance,
|
|
6394
|
-
ensureValidVNode
|
|
6415
|
+
ensureValidVNode,
|
|
6416
|
+
pushWarningContext,
|
|
6417
|
+
popWarningContext
|
|
6395
6418
|
};
|
|
6396
6419
|
const ssrUtils = _ssrUtils ;
|
|
6397
6420
|
const resolveFilter = null;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as computed$1, Ref, OnCleanup, WatchStopHandle, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, WatchCallback, ReactiveEffect, DebuggerOptions, WatchEffect, WatchHandle, WatchSource, ReactiveMarker, ShallowRef, WatchErrorCodes, reactive } from '@vue/reactivity';
|
|
2
2
|
export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEventExtraInfo, DebuggerOptions, DeepReadonly, EffectScheduler, EffectScope, MaybeRef, MaybeRefOrGetter, Raw, Reactive, ReactiveEffect, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, Ref, ShallowReactive, ShallowRef, ShallowUnwrapRef, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapRef, WatchCallback, WatchEffect, WatchHandle, WatchSource, WatchStopHandle, WritableComputedOptions, WritableComputedRef, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
3
|
-
import { IfAny, Prettify,
|
|
3
|
+
import { IfAny, Prettify, LooseRequired, UnionToIntersection, OverloadParameters } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
6
6
|
export declare const computed: typeof computed$1;
|
|
@@ -476,12 +476,12 @@ export type CreateComponentPublicInstance<P = {}, B = {}, D = {}, C extends Comp
|
|
|
476
476
|
* inference everywhere internally, but it has to be a new type to avoid
|
|
477
477
|
* breaking types that relies on previous arguments order (#10842)
|
|
478
478
|
*/
|
|
479
|
-
export type CreateComponentPublicInstanceWithMixins<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, TypeRefs extends Data = {}, Provide extends ComponentProvideOptions = ComponentProvideOptions, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S, LC, Directives, Exposed, Provide>, I, S, Exposed, TypeRefs>;
|
|
479
|
+
export type CreateComponentPublicInstanceWithMixins<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, TypeRefs extends Data = {}, TypeEl extends Element = any, Provide extends ComponentProvideOptions = ComponentProvideOptions, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S, LC, Directives, Exposed, Provide>, I, S, Exposed, TypeRefs, TypeEl>;
|
|
480
480
|
type ExposedKeys<T, Exposed extends string & keyof T> = '' extends Exposed ? T : Pick<T, Exposed>;
|
|
481
481
|
export type ComponentPublicInstance<P = {}, // props type extracted from props option
|
|
482
482
|
B = {}, // raw bindings returned from setup()
|
|
483
483
|
D = {}, // return from data()
|
|
484
|
-
C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = {}, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, Exposed extends string = '', TypeRefs extends Data = {}> = {
|
|
484
|
+
C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = {}, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, Exposed extends string = '', TypeRefs extends Data = {}, TypeEl extends Element = any> = {
|
|
485
485
|
$: ComponentInternalInstance;
|
|
486
486
|
$data: D;
|
|
487
487
|
$props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<Prettify<P> & PublicProps, keyof Defaults> : Prettify<P> & PublicProps;
|
|
@@ -492,7 +492,7 @@ C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOpt
|
|
|
492
492
|
$parent: ComponentPublicInstance | null;
|
|
493
493
|
$host: Element | null;
|
|
494
494
|
$emit: EmitFn<E>;
|
|
495
|
-
$el:
|
|
495
|
+
$el: TypeEl;
|
|
496
496
|
$options: Options & MergedComponentOptionsOverride;
|
|
497
497
|
$forceUpdate: () => void;
|
|
498
498
|
$nextTick: typeof nextTick;
|
|
@@ -977,8 +977,9 @@ export declare function hasInjectionContext(): boolean;
|
|
|
977
977
|
|
|
978
978
|
export type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
979
979
|
type ResolveProps<PropsOrPropOptions, E extends EmitsOptions> = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>);
|
|
980
|
-
export type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = ResolveProps<PropsOrPropOptions, E>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}> = ComponentPublicInstanceConstructor<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, PP & Props, Defaults, MakeDefaultsOptional, {}, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, TypeRefs>> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, {}, string, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, Provide> & PP;
|
|
980
|
+
export type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = ResolveProps<PropsOrPropOptions, E>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any> = ComponentPublicInstanceConstructor<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, PP & Props, Defaults, MakeDefaultsOptional, {}, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, TypeRefs, TypeEl>> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, {}, string, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, Provide> & PP;
|
|
981
981
|
export type DefineSetupFnComponent<P extends Record<string, any>, E extends EmitsOptions = {}, S extends SlotsType = SlotsType, Props = P & EmitsToProps<E>, PP = PublicProps> = new (props: Props & PP) => CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, E, PP, {}, false, {}, S>;
|
|
982
|
+
type ToResolvedProps<Props, Emits extends EmitsOptions> = Readonly<Props> & Readonly<EmitsToProps<Emits>>;
|
|
982
983
|
export declare function defineComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType = {}>(setup: (props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs'> & {
|
|
983
984
|
props?: (keyof Props)[];
|
|
984
985
|
emits?: E | EE[];
|
|
@@ -991,7 +992,7 @@ export declare function defineComponent<Props extends Record<string, any>, E ext
|
|
|
991
992
|
}): DefineSetupFnComponent<Props, E, S>;
|
|
992
993
|
export declare function defineComponent<TypeProps, RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, RuntimePropsKeys extends string = string, TypeEmits extends ComponentTypeEmits = {}, RuntimeEmitsOptions extends EmitsOptions = {}, RuntimeEmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, ResolvedEmits extends EmitsOptions = {} extends RuntimeEmitsOptions ? TypeEmitsToOptions<TypeEmits> : RuntimeEmitsOptions, InferredProps = unknown extends TypeProps ? string extends RuntimePropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : {
|
|
993
994
|
[key in RuntimePropsKeys]?: any;
|
|
994
|
-
} : TypeProps,
|
|
995
|
+
} : TypeProps, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any>(options: {
|
|
995
996
|
props?: (RuntimePropsOptions & ThisType<void>) | RuntimePropsKeys[];
|
|
996
997
|
/**
|
|
997
998
|
* @private for language-tools use only
|
|
@@ -1005,8 +1006,12 @@ export declare function defineComponent<TypeProps, RuntimePropsOptions extends C
|
|
|
1005
1006
|
* @private for language-tools use only
|
|
1006
1007
|
*/
|
|
1007
1008
|
__typeRefs?: TypeRefs;
|
|
1008
|
-
|
|
1009
|
-
|
|
1009
|
+
/**
|
|
1010
|
+
* @private for language-tools use only
|
|
1011
|
+
*/
|
|
1012
|
+
__typeEl?: TypeEl;
|
|
1013
|
+
} & ComponentOptionsBase<ToResolvedProps<InferredProps, ResolvedEmits>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, RuntimeEmitsKeys, {}, // Defaults
|
|
1014
|
+
InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<ToResolvedProps<InferredProps, ResolvedEmits>, SetupBindings, Data, Computed, Methods, Mixin, Extends, ResolvedEmits, RuntimeEmitsKeys, {}, false, InjectOptions, Slots, LocalComponents, Directives, Exposed>>): DefineComponent<InferredProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, ResolvedEmits, RuntimeEmitsKeys, PublicProps, ToResolvedProps<InferredProps, ResolvedEmits>, ExtractDefaultPropTypes<RuntimePropsOptions>, Slots, LocalComponents, Directives, Exposed, Provide, unknown extends TypeProps ? true : false, TypeRefs, TypeEl>;
|
|
1010
1015
|
|
|
1011
1016
|
export interface App<HostElement = any> {
|
|
1012
1017
|
version: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
import { pauseTracking, resetTracking, isRef, toRaw, traverse, isReactive, ref, shallowReadArray, toReactive, shallowReadonly, track, reactive, shallowReactive, trigger, ReactiveEffect, watch as watch$1, customRef, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1,
|
|
6
|
+
import { pauseTracking, resetTracking, isRef, toRaw, traverse, shallowRef, readonly, isReactive, ref, shallowReadArray, toReactive, shallowReadonly, track, reactive, shallowReactive, trigger, ReactiveEffect, watch as watch$1, customRef, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, isShallow, isReadonly } from '@vue/reactivity';
|
|
7
7
|
export { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
8
8
|
import { isString, isFunction, isPromise, isArray, EMPTY_OBJ, NOOP, getGlobalThis, extend, isBuiltInDirective, hasOwn, remove, def, isOn, isReservedProp, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr, isRenderableAttrValue, getEscapedCssVarName, isObject, isRegExp, invokeArrayFns, toHandlerKey, capitalize, camelize, isGloballyAllowed, NO, hyphenate, EMPTY_ARR, toRawType, makeMap, hasChanged, looseToNumber, isModelListener, toNumber } from '@vue/shared';
|
|
9
9
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
@@ -315,9 +315,7 @@ function queueJob(job) {
|
|
|
315
315
|
} else {
|
|
316
316
|
queue.splice(findInsertionIndex(jobId), 0, job);
|
|
317
317
|
}
|
|
318
|
-
|
|
319
|
-
job.flags |= 1;
|
|
320
|
-
}
|
|
318
|
+
job.flags |= 1;
|
|
321
319
|
queueFlush();
|
|
322
320
|
}
|
|
323
321
|
}
|
|
@@ -333,9 +331,7 @@ function queuePostFlushCb(cb) {
|
|
|
333
331
|
activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
|
|
334
332
|
} else if (!(cb.flags & 1)) {
|
|
335
333
|
pendingPostFlushCbs.push(cb);
|
|
336
|
-
|
|
337
|
-
cb.flags |= 1;
|
|
338
|
-
}
|
|
334
|
+
cb.flags |= 1;
|
|
339
335
|
}
|
|
340
336
|
} else {
|
|
341
337
|
pendingPostFlushCbs.push(...cb);
|
|
@@ -357,6 +353,9 @@ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
|
357
353
|
}
|
|
358
354
|
queue.splice(i, 1);
|
|
359
355
|
i--;
|
|
356
|
+
if (cb.flags & 4) {
|
|
357
|
+
cb.flags &= ~1;
|
|
358
|
+
}
|
|
360
359
|
cb();
|
|
361
360
|
cb.flags &= ~1;
|
|
362
361
|
}
|
|
@@ -381,6 +380,9 @@ function flushPostFlushCbs(seen) {
|
|
|
381
380
|
if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
|
|
382
381
|
continue;
|
|
383
382
|
}
|
|
383
|
+
if (cb.flags & 4) {
|
|
384
|
+
cb.flags &= ~1;
|
|
385
|
+
}
|
|
384
386
|
if (!(cb.flags & 8)) cb();
|
|
385
387
|
cb.flags &= ~1;
|
|
386
388
|
}
|
|
@@ -403,6 +405,9 @@ function flushJobs(seen) {
|
|
|
403
405
|
if (!!(process.env.NODE_ENV !== "production") && check(job)) {
|
|
404
406
|
continue;
|
|
405
407
|
}
|
|
408
|
+
if (job.flags & 4) {
|
|
409
|
+
job.flags &= ~1;
|
|
410
|
+
}
|
|
406
411
|
callWithErrorHandling(
|
|
407
412
|
job,
|
|
408
413
|
job.i,
|
|
@@ -412,6 +417,12 @@ function flushJobs(seen) {
|
|
|
412
417
|
}
|
|
413
418
|
}
|
|
414
419
|
} finally {
|
|
420
|
+
for (; flushIndex < queue.length; flushIndex++) {
|
|
421
|
+
const job = queue[flushIndex];
|
|
422
|
+
if (job) {
|
|
423
|
+
job.flags &= ~1;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
415
426
|
flushIndex = 0;
|
|
416
427
|
queue.length = 0;
|
|
417
428
|
flushPostFlushCbs(seen);
|
|
@@ -1168,6 +1179,7 @@ const BaseTransitionImpl = {
|
|
|
1168
1179
|
if (!(instance.job.flags & 8)) {
|
|
1169
1180
|
instance.update();
|
|
1170
1181
|
}
|
|
1182
|
+
delete leavingHooks.afterLeave;
|
|
1171
1183
|
};
|
|
1172
1184
|
return emptyPlaceholder(child);
|
|
1173
1185
|
} else if (mode === "in-out" && innerChild.type !== Comment) {
|
|
@@ -1391,6 +1403,7 @@ function getInnerChild$1(vnode) {
|
|
|
1391
1403
|
}
|
|
1392
1404
|
function setTransitionHooks(vnode, hooks) {
|
|
1393
1405
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
1406
|
+
vnode.transition = hooks;
|
|
1394
1407
|
setTransitionHooks(vnode.component.subTree, hooks);
|
|
1395
1408
|
} else if (vnode.shapeFlag & 128) {
|
|
1396
1409
|
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
@@ -1435,7 +1448,7 @@ function defineComponent(options, extraOptions) {
|
|
|
1435
1448
|
function useId() {
|
|
1436
1449
|
const i = getCurrentInstance();
|
|
1437
1450
|
if (i) {
|
|
1438
|
-
return (i.appContext.config.idPrefix || "v") + "
|
|
1451
|
+
return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
|
|
1439
1452
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
1440
1453
|
warn$1(
|
|
1441
1454
|
`useId() is called when there is no active component instance to be associated with.`
|
|
@@ -1446,6 +1459,34 @@ function markAsyncBoundary(instance) {
|
|
|
1446
1459
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
1447
1460
|
}
|
|
1448
1461
|
|
|
1462
|
+
const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
|
|
1463
|
+
function useTemplateRef(key) {
|
|
1464
|
+
const i = getCurrentInstance();
|
|
1465
|
+
const r = shallowRef(null);
|
|
1466
|
+
if (i) {
|
|
1467
|
+
const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
1468
|
+
let desc;
|
|
1469
|
+
if (!!(process.env.NODE_ENV !== "production") && (desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
|
|
1470
|
+
warn$1(`useTemplateRef('${key}') already exists.`);
|
|
1471
|
+
} else {
|
|
1472
|
+
Object.defineProperty(refs, key, {
|
|
1473
|
+
enumerable: true,
|
|
1474
|
+
get: () => r.value,
|
|
1475
|
+
set: (val) => r.value = val
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
1479
|
+
warn$1(
|
|
1480
|
+
`useTemplateRef() is called when there is no active component instance to be associated with.`
|
|
1481
|
+
);
|
|
1482
|
+
}
|
|
1483
|
+
const ret = !!(process.env.NODE_ENV !== "production") ? readonly(r) : r;
|
|
1484
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1485
|
+
knownTemplateRefs.add(ret);
|
|
1486
|
+
}
|
|
1487
|
+
return ret;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1449
1490
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
1450
1491
|
if (isArray(rawRef)) {
|
|
1451
1492
|
rawRef.forEach(
|
|
@@ -1474,7 +1515,13 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
1474
1515
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
1475
1516
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
1476
1517
|
const setupState = owner.setupState;
|
|
1477
|
-
const
|
|
1518
|
+
const rawSetupState = toRaw(setupState);
|
|
1519
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
|
|
1520
|
+
if (!!(process.env.NODE_ENV !== "production") && knownTemplateRefs.has(rawSetupState[key])) {
|
|
1521
|
+
return false;
|
|
1522
|
+
}
|
|
1523
|
+
return hasOwn(rawSetupState, key);
|
|
1524
|
+
};
|
|
1478
1525
|
if (oldRef != null && oldRef !== ref) {
|
|
1479
1526
|
if (isString(oldRef)) {
|
|
1480
1527
|
refs[oldRef] = null;
|
|
@@ -2542,7 +2589,7 @@ const KeepAliveImpl = {
|
|
|
2542
2589
|
return () => {
|
|
2543
2590
|
pendingCacheKey = null;
|
|
2544
2591
|
if (!slots.default) {
|
|
2545
|
-
return null;
|
|
2592
|
+
return current = null;
|
|
2546
2593
|
}
|
|
2547
2594
|
const children = slots.default();
|
|
2548
2595
|
const rawVNode = children[0];
|
|
@@ -5170,7 +5217,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5170
5217
|
endMeasure(instance, `hydrate`);
|
|
5171
5218
|
}
|
|
5172
5219
|
};
|
|
5173
|
-
if (isAsyncWrapperVNode) {
|
|
5220
|
+
if (isAsyncWrapperVNode && type.__asyncHydrate) {
|
|
5174
5221
|
type.__asyncHydrate(
|
|
5175
5222
|
el,
|
|
5176
5223
|
instance,
|
|
@@ -6461,7 +6508,7 @@ function renderComponentRoot(instance) {
|
|
|
6461
6508
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
6462
6509
|
);
|
|
6463
6510
|
}
|
|
6464
|
-
root
|
|
6511
|
+
setTransitionHooks(root, vnode.transition);
|
|
6465
6512
|
}
|
|
6466
6513
|
if (!!(process.env.NODE_ENV !== "production") && setRoot) {
|
|
6467
6514
|
setRoot(root);
|
|
@@ -6955,7 +7002,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
6955
7002
|
};
|
|
6956
7003
|
}
|
|
6957
7004
|
if (activeBranch) {
|
|
6958
|
-
if (parentNode(activeBranch.el)
|
|
7005
|
+
if (parentNode(activeBranch.el) === container2) {
|
|
6959
7006
|
anchor = next(activeBranch);
|
|
6960
7007
|
}
|
|
6961
7008
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
@@ -8030,29 +8077,6 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
8030
8077
|
return c;
|
|
8031
8078
|
};
|
|
8032
8079
|
|
|
8033
|
-
function useTemplateRef(key) {
|
|
8034
|
-
const i = getCurrentInstance();
|
|
8035
|
-
const r = shallowRef(null);
|
|
8036
|
-
if (i) {
|
|
8037
|
-
const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
8038
|
-
let desc;
|
|
8039
|
-
if (!!(process.env.NODE_ENV !== "production") && (desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
|
|
8040
|
-
warn$1(`useTemplateRef('${key}') already exists.`);
|
|
8041
|
-
} else {
|
|
8042
|
-
Object.defineProperty(refs, key, {
|
|
8043
|
-
enumerable: true,
|
|
8044
|
-
get: () => r.value,
|
|
8045
|
-
set: (val) => r.value = val
|
|
8046
|
-
});
|
|
8047
|
-
}
|
|
8048
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
8049
|
-
warn$1(
|
|
8050
|
-
`useTemplateRef() is called when there is no active component instance to be associated with.`
|
|
8051
|
-
);
|
|
8052
|
-
}
|
|
8053
|
-
return !!(process.env.NODE_ENV !== "production") ? readonly(r) : r;
|
|
8054
|
-
}
|
|
8055
|
-
|
|
8056
8080
|
function h(type, propsOrChildren, children) {
|
|
8057
8081
|
const l = arguments.length;
|
|
8058
8082
|
if (l === 2) {
|
|
@@ -8278,7 +8302,7 @@ function isMemoSame(cached, memo) {
|
|
|
8278
8302
|
return true;
|
|
8279
8303
|
}
|
|
8280
8304
|
|
|
8281
|
-
const version = "3.5.
|
|
8305
|
+
const version = "3.5.3";
|
|
8282
8306
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8283
8307
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8284
8308
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -8291,7 +8315,9 @@ const _ssrUtils = {
|
|
|
8291
8315
|
isVNode: isVNode,
|
|
8292
8316
|
normalizeVNode,
|
|
8293
8317
|
getComponentPublicInstance,
|
|
8294
|
-
ensureValidVNode
|
|
8318
|
+
ensureValidVNode,
|
|
8319
|
+
pushWarningContext,
|
|
8320
|
+
popWarningContext
|
|
8295
8321
|
};
|
|
8296
8322
|
const ssrUtils = _ssrUtils ;
|
|
8297
8323
|
const resolveFilter = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.5.
|
|
50
|
-
"@vue/reactivity": "3.5.
|
|
49
|
+
"@vue/shared": "3.5.3",
|
|
50
|
+
"@vue/reactivity": "3.5.3"
|
|
51
51
|
}
|
|
52
52
|
}
|