vue 3.6.0-beta.13 → 3.6.0-beta.15
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/vue.cjs.js +2 -1
- package/dist/vue.cjs.prod.js +2 -1
- package/dist/vue.d.mts +3 -3
- package/dist/vue.d.ts +3 -3
- package/dist/vue.esm-browser.js +100 -46
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +3 -3
- package/dist/vue.global.js +100 -45
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime-with-vapor.esm-browser.js +1130 -872
- package/dist/vue.runtime-with-vapor.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +95 -43
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +3 -3
- package/dist/vue.runtime.global.js +95 -42
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +7 -7
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-beta.
|
|
2
|
+
* vue v3.6.0-beta.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -68,6 +68,7 @@ function compileToFunction(template, options) {
|
|
|
68
68
|
(0, _vue_runtime_dom.registerRuntimeCompiler)(compileToFunction);
|
|
69
69
|
//#endregion
|
|
70
70
|
exports.compile = compileToFunction;
|
|
71
|
+
exports.defineVaporAsyncComponent = _vue_runtime_dom.defineAsyncComponent;
|
|
71
72
|
Object.keys(_vue_runtime_dom).forEach(function(k) {
|
|
72
73
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
73
74
|
enumerable: true,
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-beta.
|
|
2
|
+
* vue v3.6.0-beta.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -59,6 +59,7 @@ function compileToFunction(template, options) {
|
|
|
59
59
|
(0, _vue_runtime_dom.registerRuntimeCompiler)(compileToFunction);
|
|
60
60
|
//#endregion
|
|
61
61
|
exports.compile = compileToFunction;
|
|
62
|
+
exports.defineVaporAsyncComponent = _vue_runtime_dom.defineAsyncComponent;
|
|
62
63
|
Object.keys(_vue_runtime_dom).forEach(function(k) {
|
|
63
64
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
64
65
|
enumerable: true,
|
package/dist/vue.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompilerOptions } from "@vue/compiler-dom";
|
|
2
|
-
import { RenderFunction } from "@vue/runtime-dom";
|
|
3
|
-
import { VaporSlot, withAsyncContext } from "@vue/runtime-vapor";
|
|
2
|
+
import { RenderFunction, defineAsyncComponent as defineVaporAsyncComponent$1 } from "@vue/runtime-dom";
|
|
3
|
+
import { VaporSlot, defineVaporAsyncComponent, withAsyncContext } from "@vue/runtime-vapor";
|
|
4
4
|
export * from "@vue/runtime-dom";
|
|
5
5
|
export * from "@vue/runtime-vapor";
|
|
6
6
|
|
|
@@ -9,4 +9,4 @@ export * from "@vue/runtime-vapor";
|
|
|
9
9
|
//#region temp/packages/vue/src/index.d.ts
|
|
10
10
|
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { type VaporSlot, compileToFunction as compile, withAsyncContext };
|
|
12
|
+
export { type VaporSlot, compileToFunction as compile, defineVaporAsyncComponent, withAsyncContext };
|
package/dist/vue.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompilerOptions } from "@vue/compiler-dom";
|
|
2
|
-
import { RenderFunction } from "@vue/runtime-dom";
|
|
3
|
-
import { VaporSlot, withAsyncContext } from "@vue/runtime-vapor";
|
|
2
|
+
import { RenderFunction, defineAsyncComponent as defineVaporAsyncComponent$1 } from "@vue/runtime-dom";
|
|
3
|
+
import { VaporSlot, defineVaporAsyncComponent, withAsyncContext } from "@vue/runtime-vapor";
|
|
4
4
|
export * from "@vue/runtime-dom";
|
|
5
5
|
export * from "@vue/runtime-vapor";
|
|
6
6
|
|
|
@@ -9,4 +9,4 @@ export * from "@vue/runtime-vapor";
|
|
|
9
9
|
//#region temp/packages/vue/src/index.d.ts
|
|
10
10
|
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { type VaporSlot, compileToFunction as compile, withAsyncContext };
|
|
12
|
+
export { type VaporSlot, compileToFunction as compile, defineVaporAsyncComponent, withAsyncContext };
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-beta.
|
|
2
|
+
* vue v3.6.0-beta.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2246,8 +2246,9 @@ var WatcherEffect = class extends ReactiveEffect {
|
|
|
2246
2246
|
if (once && cb) {
|
|
2247
2247
|
const _cb = cb;
|
|
2248
2248
|
cb = (...args) => {
|
|
2249
|
-
_cb(...args);
|
|
2249
|
+
const res = _cb(...args);
|
|
2250
2250
|
this.stop();
|
|
2251
|
+
return res;
|
|
2251
2252
|
};
|
|
2252
2253
|
}
|
|
2253
2254
|
this.cb = cb;
|
|
@@ -2261,7 +2262,7 @@ var WatcherEffect = class extends ReactiveEffect {
|
|
|
2261
2262
|
if (!this.cb) return;
|
|
2262
2263
|
const { immediate, deep, call } = this.options;
|
|
2263
2264
|
if (initialRun && !immediate) return;
|
|
2264
|
-
if (deep || this.forceTrigger || (this.isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
|
|
2265
|
+
if (initialRun || deep || this.forceTrigger || (this.isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
|
|
2265
2266
|
cleanup(this);
|
|
2266
2267
|
const currentWatcher = activeWatcher;
|
|
2267
2268
|
activeWatcher = this;
|
|
@@ -2678,6 +2679,7 @@ function flushJobs(seen) {
|
|
|
2678
2679
|
}
|
|
2679
2680
|
flushIndex = 0;
|
|
2680
2681
|
jobsLength = 0;
|
|
2682
|
+
jobs.length = 0;
|
|
2681
2683
|
flushPostFlushCbs(seen);
|
|
2682
2684
|
currentFlushPromise = null;
|
|
2683
2685
|
if (jobsLength || postJobs.length) flushJobs(seen);
|
|
@@ -2735,6 +2737,14 @@ function createRecord(id, initialDef) {
|
|
|
2735
2737
|
function normalizeClassComponent(component) {
|
|
2736
2738
|
return isClassComponent(component) ? component.__vccOpts : component;
|
|
2737
2739
|
}
|
|
2740
|
+
function hasDirtyAncestor(instance, dirtyInstances) {
|
|
2741
|
+
let parent = instance.parent;
|
|
2742
|
+
while (parent) {
|
|
2743
|
+
if (dirtyInstances.has(parent)) return true;
|
|
2744
|
+
parent = parent.parent;
|
|
2745
|
+
}
|
|
2746
|
+
return false;
|
|
2747
|
+
}
|
|
2738
2748
|
function rerender(id, newRender) {
|
|
2739
2749
|
const record = map.get(id);
|
|
2740
2750
|
if (!record) return;
|
|
@@ -2766,42 +2776,69 @@ function reload(id, newComp) {
|
|
|
2766
2776
|
const isVapor = record.initialDef.__vapor;
|
|
2767
2777
|
updateComponentDef(record.initialDef, newComp);
|
|
2768
2778
|
const instances = [...record.instances];
|
|
2769
|
-
if (isVapor && newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
2779
|
+
if (isVapor && newComp.__vapor && !instances.some((instance) => instance.parent && !instance.parent.vapor) && !instances.some((i) => i.ceReload)) {
|
|
2770
2780
|
for (const instance of instances) if (instance.root && instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(instance.type);
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
const
|
|
2774
|
-
let dirtyInstances = hmrDirtyComponents.get(oldComp);
|
|
2775
|
-
if (!dirtyInstances) {
|
|
2776
|
-
if (oldComp !== record.initialDef) updateComponentDef(oldComp, newComp);
|
|
2777
|
-
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
2778
|
-
}
|
|
2779
|
-
dirtyInstances.add(instance);
|
|
2780
|
-
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
2781
|
-
instance.appContext.propsCache.delete(instance.type);
|
|
2782
|
-
instance.appContext.emitsCache.delete(instance.type);
|
|
2783
|
-
instance.appContext.optionsCache.delete(instance.type);
|
|
2784
|
-
if (instance.ceReload) {
|
|
2785
|
-
dirtyInstances.add(instance);
|
|
2786
|
-
instance.ceReload(newComp.styles);
|
|
2787
|
-
dirtyInstances.delete(instance);
|
|
2788
|
-
} else if (instance.parent) queueJob(() => {
|
|
2789
|
-
isHmrUpdating = true;
|
|
2781
|
+
const dirtyInstances = new Set(instances);
|
|
2782
|
+
const rerenderedParents = /* @__PURE__ */ new Set();
|
|
2783
|
+
for (const instance of instances) {
|
|
2790
2784
|
const parent = instance.parent;
|
|
2791
|
-
if (parent
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2785
|
+
if (parent) {
|
|
2786
|
+
if (!hasDirtyAncestor(instance, dirtyInstances) && !rerenderedParents.has(parent)) {
|
|
2787
|
+
rerenderedParents.add(parent);
|
|
2788
|
+
parent.hmrRerender();
|
|
2789
|
+
}
|
|
2790
|
+
} else instance.hmrReload(newComp);
|
|
2791
|
+
}
|
|
2792
|
+
} else {
|
|
2793
|
+
const parentUpdates = /* @__PURE__ */ new Map();
|
|
2794
|
+
const dirtyInstanceSet = new Set(instances);
|
|
2795
|
+
for (const instance of instances) {
|
|
2796
|
+
const oldComp = normalizeClassComponent(instance.type);
|
|
2797
|
+
let dirtyInstances = hmrDirtyComponents.get(oldComp);
|
|
2798
|
+
if (!dirtyInstances) {
|
|
2799
|
+
if (oldComp !== record.initialDef) updateComponentDef(oldComp, newComp);
|
|
2800
|
+
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
2795
2801
|
}
|
|
2796
|
-
|
|
2797
|
-
|
|
2802
|
+
dirtyInstances.add(instance);
|
|
2803
|
+
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
2804
|
+
instance.appContext.propsCache.delete(instance.type);
|
|
2805
|
+
instance.appContext.emitsCache.delete(instance.type);
|
|
2806
|
+
instance.appContext.optionsCache.delete(instance.type);
|
|
2807
|
+
if (instance.ceReload) {
|
|
2808
|
+
dirtyInstances.add(instance);
|
|
2809
|
+
instance.ceReload(newComp.styles);
|
|
2810
|
+
dirtyInstances.delete(instance);
|
|
2811
|
+
} else if (instance.parent) {
|
|
2812
|
+
const parent = instance.parent;
|
|
2813
|
+
if (!hasDirtyAncestor(instance, dirtyInstanceSet)) {
|
|
2814
|
+
let updates = parentUpdates.get(parent);
|
|
2815
|
+
if (!updates) parentUpdates.set(parent, updates = []);
|
|
2816
|
+
updates.push([instance, dirtyInstances]);
|
|
2817
|
+
}
|
|
2818
|
+
} else if (instance.appContext.reload) instance.appContext.reload();
|
|
2819
|
+
else if (typeof window !== "undefined") window.location.reload();
|
|
2820
|
+
else console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
|
|
2821
|
+
if (instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(oldComp);
|
|
2822
|
+
}
|
|
2823
|
+
parentUpdates.forEach((updates, parent) => {
|
|
2824
|
+
queueJob(() => {
|
|
2825
|
+
isHmrUpdating = true;
|
|
2826
|
+
if (parent.vapor) parent.hmrRerender();
|
|
2827
|
+
else {
|
|
2828
|
+
const i = parent;
|
|
2829
|
+
if (!(i.effect.flags & 1024)) {
|
|
2830
|
+
i.renderCache = [];
|
|
2831
|
+
i.effect.run();
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
nextTick(() => {
|
|
2835
|
+
isHmrUpdating = false;
|
|
2836
|
+
});
|
|
2837
|
+
updates.forEach(([instance, dirtyInstances]) => {
|
|
2838
|
+
dirtyInstances.delete(instance);
|
|
2839
|
+
});
|
|
2798
2840
|
});
|
|
2799
|
-
dirtyInstances.delete(instance);
|
|
2800
2841
|
});
|
|
2801
|
-
else if (instance.appContext.reload) instance.appContext.reload();
|
|
2802
|
-
else if (typeof window !== "undefined") window.location.reload();
|
|
2803
|
-
else console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
|
|
2804
|
-
if (instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(oldComp);
|
|
2805
2842
|
}
|
|
2806
2843
|
queuePostFlushCb(() => {
|
|
2807
2844
|
hmrDirtyComponents.clear();
|
|
@@ -4281,11 +4318,16 @@ function defineAsyncComponent(source) {
|
|
|
4281
4318
|
onError(err);
|
|
4282
4319
|
return () => errorComponent ? createVNode(errorComponent, { error: err }) : null;
|
|
4283
4320
|
});
|
|
4284
|
-
const { loaded, error, delayed } = useAsyncComponentState(delay, timeout, onError);
|
|
4321
|
+
const { loaded, error, delayed } = useAsyncComponentState(delay, timeout, onError, instance);
|
|
4285
4322
|
load().then(() => {
|
|
4323
|
+
if (instance.isUnmounted) return;
|
|
4286
4324
|
loaded.value = true;
|
|
4287
4325
|
if (instance.parent && instance.parent.vnode && isKeepAlive(instance.parent.vnode)) instance.parent.update();
|
|
4288
4326
|
}).catch((err) => {
|
|
4327
|
+
if (instance.isUnmounted) {
|
|
4328
|
+
setPendingRequest(null);
|
|
4329
|
+
return;
|
|
4330
|
+
}
|
|
4289
4331
|
onError(err);
|
|
4290
4332
|
error.value = err;
|
|
4291
4333
|
});
|
|
@@ -4343,14 +4385,22 @@ function createAsyncComponentContext(source) {
|
|
|
4343
4385
|
setPendingRequest: (request) => pendingRequest = request
|
|
4344
4386
|
};
|
|
4345
4387
|
}
|
|
4346
|
-
const useAsyncComponentState = (delay, timeout, onError) => {
|
|
4388
|
+
const useAsyncComponentState = (delay, timeout, onError, instance = currentInstance) => {
|
|
4347
4389
|
const loaded = /* @__PURE__ */ ref(false);
|
|
4348
4390
|
const error = /* @__PURE__ */ ref();
|
|
4349
4391
|
const delayed = /* @__PURE__ */ ref(!!delay);
|
|
4350
|
-
|
|
4392
|
+
let timeoutTimer;
|
|
4393
|
+
let delayTimer;
|
|
4394
|
+
if (instance) onUnmounted(() => {
|
|
4395
|
+
if (timeoutTimer != null) clearTimeout(timeoutTimer);
|
|
4396
|
+
if (delayTimer != null) clearTimeout(delayTimer);
|
|
4397
|
+
}, instance);
|
|
4398
|
+
if (delay) delayTimer = setTimeout(() => {
|
|
4399
|
+
if (instance && instance.isUnmounted) return;
|
|
4351
4400
|
delayed.value = false;
|
|
4352
4401
|
}, delay);
|
|
4353
|
-
if (timeout != null) setTimeout(() => {
|
|
4402
|
+
if (timeout != null) timeoutTimer = setTimeout(() => {
|
|
4403
|
+
if (instance && instance.isUnmounted) return;
|
|
4354
4404
|
if (!loaded.value && !error.value) {
|
|
4355
4405
|
const err = /* @__PURE__ */ new Error(`Async component timed out after ${timeout}ms.`);
|
|
4356
4406
|
onError(err);
|
|
@@ -4753,6 +4803,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
4753
4803
|
slot: vaporSlot,
|
|
4754
4804
|
fallback
|
|
4755
4805
|
};
|
|
4806
|
+
if (!noSlotted && ret.scopeId) ret.slotScopeIds = [ret.scopeId + "-s"];
|
|
4756
4807
|
return ret;
|
|
4757
4808
|
}
|
|
4758
4809
|
if (currentRenderingInstance && (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce)) {
|
|
@@ -5606,12 +5657,13 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
5606
5657
|
for (const key of rawPropKeys) if (key === name || key === camelizedName || key === hyphenatedName) parentPassedModelValue = true;
|
|
5607
5658
|
else if (key === `onUpdate:${name}` || key === `onUpdate:${camelizedName}` || key === `onUpdate:${hyphenatedName}`) parentPassedModelUpdater = true;
|
|
5608
5659
|
}
|
|
5609
|
-
|
|
5660
|
+
const hasVModel = parentPassedModelValue && parentPassedModelUpdater;
|
|
5661
|
+
if (!hasVModel) {
|
|
5610
5662
|
localValue = value;
|
|
5611
5663
|
trigger();
|
|
5612
5664
|
}
|
|
5613
5665
|
i.emit(`update:${name}`, emittedValue);
|
|
5614
|
-
if (hasChanged(value,
|
|
5666
|
+
if (hasChanged(value, prevSetValue) && (hasChanged(value, emittedValue) && !hasChanged(emittedValue, prevEmittedValue) || hasVModel && prevSetValue !== EMPTY_OBJ && !hasChanged(emittedValue, localValue))) trigger();
|
|
5615
5667
|
prevSetValue = value;
|
|
5616
5668
|
prevEmittedValue = emittedValue;
|
|
5617
5669
|
}
|
|
@@ -8457,7 +8509,7 @@ function isMemoSame(cached, memo) {
|
|
|
8457
8509
|
}
|
|
8458
8510
|
//#endregion
|
|
8459
8511
|
//#region packages/runtime-core/src/index.ts
|
|
8460
|
-
const version = "3.6.0-beta.
|
|
8512
|
+
const version = "3.6.0-beta.15";
|
|
8461
8513
|
const warn = warn$1;
|
|
8462
8514
|
/**
|
|
8463
8515
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -9608,7 +9660,7 @@ const TransitionGroup = /* @__PURE__ */ decorate({
|
|
|
9608
9660
|
prevChildren = [];
|
|
9609
9661
|
if (children) for (let i = 0; i < children.length; i++) {
|
|
9610
9662
|
const child = children[i];
|
|
9611
|
-
if (child.el && child.el instanceof Element) {
|
|
9663
|
+
if (child.el && child.el instanceof Element && !child.el[vShowHidden]) {
|
|
9612
9664
|
prevChildren.push(child);
|
|
9613
9665
|
setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));
|
|
9614
9666
|
positionMap.set(child, getPosition(child.el));
|
|
@@ -11722,7 +11774,7 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
11722
11774
|
}
|
|
11723
11775
|
},
|
|
11724
11776
|
oncdata(start, end) {
|
|
11725
|
-
if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
|
|
11777
|
+
if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
|
|
11726
11778
|
else emitError(1, start - 9);
|
|
11727
11779
|
},
|
|
11728
11780
|
onprocessinginstruction(start) {
|
|
@@ -12183,7 +12235,7 @@ function getSelfName(filename) {
|
|
|
12183
12235
|
const nameMatch = filename.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/);
|
|
12184
12236
|
return nameMatch ? capitalize(camelize(nameMatch[1])) : null;
|
|
12185
12237
|
}
|
|
12186
|
-
function createTransformContext(root, { filename = "", prefixIdentifiers = false, hoistStatic = false, hmr = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {
|
|
12238
|
+
function createTransformContext(root, { filename = "", prefixIdentifiers = false, hoistStatic = false, hmr = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, eventDelegation = true, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {
|
|
12187
12239
|
const context = {
|
|
12188
12240
|
filename,
|
|
12189
12241
|
selfName: getSelfName(filename),
|
|
@@ -12205,6 +12257,7 @@ function createTransformContext(root, { filename = "", prefixIdentifiers = false
|
|
|
12205
12257
|
bindingMetadata,
|
|
12206
12258
|
inline,
|
|
12207
12259
|
isTS,
|
|
12260
|
+
eventDelegation,
|
|
12208
12261
|
onError,
|
|
12209
12262
|
onWarn,
|
|
12210
12263
|
compatConfig,
|
|
@@ -12216,6 +12269,7 @@ function createTransformContext(root, { filename = "", prefixIdentifiers = false
|
|
|
12216
12269
|
imports: [],
|
|
12217
12270
|
cached: [],
|
|
12218
12271
|
constantCache: /* @__PURE__ */ new WeakMap(),
|
|
12272
|
+
vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
|
|
12219
12273
|
temps: 0,
|
|
12220
12274
|
identifiers: Object.create(null),
|
|
12221
12275
|
identifierScopes: Object.create(null),
|
|
@@ -12836,7 +12890,7 @@ const transformExpression = (node, context) => {
|
|
|
12836
12890
|
if (dir.type === 7 && dir.name !== "for") {
|
|
12837
12891
|
const exp = dir.exp;
|
|
12838
12892
|
const arg = dir.arg;
|
|
12839
|
-
if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
|
|
12893
|
+
if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
|
|
12840
12894
|
if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
|
|
12841
12895
|
}
|
|
12842
12896
|
}
|
|
@@ -14344,4 +14398,4 @@ function compileToFunction(template, options) {
|
|
|
14344
14398
|
}
|
|
14345
14399
|
registerRuntimeCompiler(compileToFunction);
|
|
14346
14400
|
//#endregion
|
|
14347
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, compileToFunction as compile, computed, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setIsHydratingEnabled, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
|
14401
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, compileToFunction as compile, computed, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineAsyncComponent as defineVaporAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setIsHydratingEnabled, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|