@vue/compat 3.6.0-rc.6 → 3.6.0-rc.7
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-compat.d.ts +4 -6
- package/dist/vue.cjs.js +17 -45
- package/dist/vue.cjs.prod.js +17 -45
- package/dist/vue.esm-browser.js +17 -45
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +17 -45
- package/dist/vue.global.js +17 -45
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +17 -45
- package/dist/vue.runtime.esm-browser.prod.js +6 -6
- package/dist/vue.runtime.esm-bundler.js +17 -45
- package/dist/vue.runtime.global.js +17 -45
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue-compat.d.ts
CHANGED
|
@@ -1050,15 +1050,13 @@ interface VaporInVdomInterface {
|
|
|
1050
1050
|
setTransitionHooks(component: ComponentInternalInstance, transition: TransitionHooks): void;
|
|
1051
1051
|
}
|
|
1052
1052
|
/**
|
|
1053
|
-
* Options for rendering a VDOM slot inside vapor.
|
|
1054
|
-
* outlet's position in the fallback chain;
|
|
1053
|
+
* Options for rendering a VDOM slot inside vapor. `flags` carries the
|
|
1054
|
+
* outlet's VaporSlotFlags describing its position in the fallback chain;
|
|
1055
|
+
* see renderVDOMSlot.
|
|
1055
1056
|
*/
|
|
1056
1057
|
interface VdomSlotOptions {
|
|
1057
1058
|
fallback?: (...args: any[]) => any;
|
|
1058
|
-
|
|
1059
|
-
slotRoot?: boolean;
|
|
1060
|
-
sharedFallback?: boolean;
|
|
1061
|
-
inheritFallback?: boolean;
|
|
1059
|
+
flags?: number;
|
|
1062
1060
|
adoptAnchor?: Node;
|
|
1063
1061
|
}
|
|
1064
1062
|
/**
|
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-rc.
|
|
2
|
+
* @vue/compat v3.6.0-rc.7
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4038,7 +4038,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
4038
4038
|
else done();
|
|
4039
4039
|
},
|
|
4040
4040
|
clone(node) {
|
|
4041
|
-
return cloneHooks(node);
|
|
4041
|
+
return cloneHooks ? cloneHooks(node) : hooks;
|
|
4042
4042
|
}
|
|
4043
4043
|
};
|
|
4044
4044
|
return hooks;
|
|
@@ -4876,7 +4876,7 @@ function defineAsyncComponent(source) {
|
|
|
4876
4876
|
name: "AsyncComponentWrapper",
|
|
4877
4877
|
__asyncLoader: load,
|
|
4878
4878
|
__asyncHydrate(el, instance, hydrate) {
|
|
4879
|
-
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy);
|
|
4879
|
+
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, true);
|
|
4880
4880
|
},
|
|
4881
4881
|
get __asyncResolved() {
|
|
4882
4882
|
return getResolvedComp();
|
|
@@ -4995,10 +4995,10 @@ const useAsyncComponentState = (delay, timeout, onError, instance = currentInsta
|
|
|
4995
4995
|
* shared between core and vapor
|
|
4996
4996
|
* @internal
|
|
4997
4997
|
*/
|
|
4998
|
-
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy) {
|
|
4998
|
+
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, skipIfUpdated) {
|
|
4999
4999
|
const wasConnected = el.isConnected;
|
|
5000
5000
|
let patched = false;
|
|
5001
|
-
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
5001
|
+
if (skipIfUpdated) (instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
5002
5002
|
const performHydrate = () => {
|
|
5003
5003
|
if (patched) {
|
|
5004
5004
|
{
|
|
@@ -6607,7 +6607,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6607
6607
|
if (options.el) return vm.$mount(options.el);
|
|
6608
6608
|
else return vm;
|
|
6609
6609
|
}
|
|
6610
|
-
Vue.version = `2.6.14-compat:3.6.0-rc.
|
|
6610
|
+
Vue.version = `2.6.14-compat:3.6.0-rc.7`;
|
|
6611
6611
|
Vue.config = singletonApp.config;
|
|
6612
6612
|
Vue.use = (plugin, ...options) => {
|
|
6613
6613
|
if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
|
|
@@ -8573,24 +8573,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8573
8573
|
}
|
|
8574
8574
|
if (moveType !== 2 && shapeFlag & 1 && transition) {
|
|
8575
8575
|
if (moveType === 0) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense, true);
|
|
8576
|
-
else {
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
else hostInsert(el, container, anchor);
|
|
8581
|
-
};
|
|
8582
|
-
const performLeave = () => {
|
|
8583
|
-
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
8584
|
-
if (el._isLeaving) el[leaveCbKey](true);
|
|
8585
|
-
if (transition.persisted && !wasLeaving) remove();
|
|
8586
|
-
else leave(el, () => {
|
|
8587
|
-
remove();
|
|
8588
|
-
afterLeave && afterLeave();
|
|
8589
|
-
});
|
|
8590
|
-
};
|
|
8591
|
-
if (delayLeave) delayLeave(el, remove, performLeave);
|
|
8592
|
-
else performLeave();
|
|
8593
|
-
}
|
|
8576
|
+
else performTransitionLeave(el, transition, () => {
|
|
8577
|
+
if (vnode.ctx.isUnmounted) hostRemove(el);
|
|
8578
|
+
else hostInsert(el, container, anchor);
|
|
8579
|
+
}, true, true);
|
|
8594
8580
|
} else hostInsert(el, container, anchor);
|
|
8595
8581
|
};
|
|
8596
8582
|
const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
|
|
@@ -8824,13 +8810,15 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
|
|
|
8824
8810
|
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
8825
8811
|
const performRemove = () => {
|
|
8826
8812
|
remove();
|
|
8827
|
-
if (transition && !transition.persisted && transition.afterLeave) transition.afterLeave();
|
|
8813
|
+
if (transition && (force || !transition.persisted) && transition.afterLeave) transition.afterLeave();
|
|
8828
8814
|
};
|
|
8829
8815
|
if (force || isElement && transition && !transition.persisted) {
|
|
8830
8816
|
const { leave, delayLeave } = transition;
|
|
8831
8817
|
const performLeave = () => {
|
|
8818
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
8832
8819
|
if (el._isLeaving && force) el[leaveCbKey](true);
|
|
8833
|
-
|
|
8820
|
+
if (force && transition.persisted && !wasLeaving) remove();
|
|
8821
|
+
else leave(el, performRemove);
|
|
8834
8822
|
};
|
|
8835
8823
|
if (delayLeave) delayLeave(el, performRemove, performLeave);
|
|
8836
8824
|
else performLeave();
|
|
@@ -10172,7 +10160,7 @@ function isMemoSame(cached, memo) {
|
|
|
10172
10160
|
}
|
|
10173
10161
|
//#endregion
|
|
10174
10162
|
//#region packages/runtime-core/src/index.ts
|
|
10175
|
-
const version = "3.6.0-rc.
|
|
10163
|
+
const version = "3.6.0-rc.7";
|
|
10176
10164
|
const warn = warn$1;
|
|
10177
10165
|
/**
|
|
10178
10166
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -11109,13 +11097,11 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
11109
11097
|
_renderSlots() {
|
|
11110
11098
|
const outlets = this._getSlots();
|
|
11111
11099
|
const scopeId = this._instance.type.__scopeId;
|
|
11112
|
-
const slotReplacements = /* @__PURE__ */ new Map();
|
|
11113
11100
|
for (let i = 0; i < outlets.length; i++) {
|
|
11114
11101
|
const o = outlets[i];
|
|
11115
11102
|
const slotName = o.getAttribute("name") || "default";
|
|
11116
11103
|
const content = this._slots[slotName];
|
|
11117
11104
|
const parent = o.parentNode;
|
|
11118
|
-
const replacementNodes = [];
|
|
11119
11105
|
if (content) for (const n of content) {
|
|
11120
11106
|
if (scopeId && n.nodeType === 1) {
|
|
11121
11107
|
const id = scopeId + "-s";
|
|
@@ -11125,20 +11111,10 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
11125
11111
|
while (child = walker.nextNode()) child.setAttribute(id, "");
|
|
11126
11112
|
}
|
|
11127
11113
|
parent.insertBefore(n, o);
|
|
11128
|
-
replacementNodes.push(n);
|
|
11129
|
-
}
|
|
11130
|
-
else while (o.firstChild) {
|
|
11131
|
-
const child = o.firstChild;
|
|
11132
|
-
parent.insertBefore(child, o);
|
|
11133
|
-
replacementNodes.push(child);
|
|
11134
11114
|
}
|
|
11115
|
+
else while (o.firstChild) parent.insertBefore(o.firstChild, o);
|
|
11135
11116
|
parent.removeChild(o);
|
|
11136
|
-
slotReplacements.set(o, {
|
|
11137
|
-
nodes: replacementNodes,
|
|
11138
|
-
usedFallback: !content
|
|
11139
|
-
});
|
|
11140
11117
|
}
|
|
11141
|
-
this._updateSlotNodes(slotReplacements);
|
|
11142
11118
|
}
|
|
11143
11119
|
/**
|
|
11144
11120
|
* @internal
|
|
@@ -11177,7 +11153,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
11177
11153
|
* @internal
|
|
11178
11154
|
*/
|
|
11179
11155
|
_hasShadowRoot() {
|
|
11180
|
-
return this.
|
|
11156
|
+
return this._root !== this;
|
|
11181
11157
|
}
|
|
11182
11158
|
/**
|
|
11183
11159
|
* @internal
|
|
@@ -11222,10 +11198,6 @@ var VueElement = class extends VueElementBase {
|
|
|
11222
11198
|
if (this._instance && this._instance.ce) this._instance.ce = void 0;
|
|
11223
11199
|
this._app = this._instance = null;
|
|
11224
11200
|
}
|
|
11225
|
-
/**
|
|
11226
|
-
* Only called when shadowRoot is false
|
|
11227
|
-
*/
|
|
11228
|
-
_updateSlotNodes(replacements) {}
|
|
11229
11201
|
_createVNode() {
|
|
11230
11202
|
const baseProps = {};
|
|
11231
11203
|
if (!this.shadowRoot) baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this);
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-rc.
|
|
2
|
+
* @vue/compat v3.6.0-rc.7
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3245,7 +3245,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
3245
3245
|
else done();
|
|
3246
3246
|
},
|
|
3247
3247
|
clone(node) {
|
|
3248
|
-
return cloneHooks(node);
|
|
3248
|
+
return cloneHooks ? cloneHooks(node) : hooks;
|
|
3249
3249
|
}
|
|
3250
3250
|
};
|
|
3251
3251
|
return hooks;
|
|
@@ -3939,7 +3939,7 @@ function defineAsyncComponent(source) {
|
|
|
3939
3939
|
name: "AsyncComponentWrapper",
|
|
3940
3940
|
__asyncLoader: load,
|
|
3941
3941
|
__asyncHydrate(el, instance, hydrate) {
|
|
3942
|
-
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy);
|
|
3942
|
+
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, true);
|
|
3943
3943
|
},
|
|
3944
3944
|
get __asyncResolved() {
|
|
3945
3945
|
return getResolvedComp();
|
|
@@ -4056,10 +4056,10 @@ const useAsyncComponentState = (delay, timeout, onError, instance = currentInsta
|
|
|
4056
4056
|
* shared between core and vapor
|
|
4057
4057
|
* @internal
|
|
4058
4058
|
*/
|
|
4059
|
-
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy) {
|
|
4059
|
+
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, skipIfUpdated) {
|
|
4060
4060
|
const wasConnected = el.isConnected;
|
|
4061
4061
|
let patched = false;
|
|
4062
|
-
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
4062
|
+
if (skipIfUpdated) (instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
4063
4063
|
const performHydrate = () => {
|
|
4064
4064
|
if (patched) return;
|
|
4065
4065
|
if (!el.parentNode || wasConnected && !el.isConnected) return;
|
|
@@ -5458,7 +5458,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5458
5458
|
if (options.el) return vm.$mount(options.el);
|
|
5459
5459
|
else return vm;
|
|
5460
5460
|
}
|
|
5461
|
-
Vue.version = `2.6.14-compat:3.6.0-rc.
|
|
5461
|
+
Vue.version = `2.6.14-compat:3.6.0-rc.7`;
|
|
5462
5462
|
Vue.config = singletonApp.config;
|
|
5463
5463
|
Vue.use = (plugin, ...options) => {
|
|
5464
5464
|
if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
|
|
@@ -7030,24 +7030,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7030
7030
|
}
|
|
7031
7031
|
if (moveType !== 2 && shapeFlag & 1 && transition) {
|
|
7032
7032
|
if (moveType === 0) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense, true);
|
|
7033
|
-
else {
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
else hostInsert(el, container, anchor);
|
|
7038
|
-
};
|
|
7039
|
-
const performLeave = () => {
|
|
7040
|
-
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
7041
|
-
if (el._isLeaving) el[leaveCbKey](true);
|
|
7042
|
-
if (transition.persisted && !wasLeaving) remove();
|
|
7043
|
-
else leave(el, () => {
|
|
7044
|
-
remove();
|
|
7045
|
-
afterLeave && afterLeave();
|
|
7046
|
-
});
|
|
7047
|
-
};
|
|
7048
|
-
if (delayLeave) delayLeave(el, remove, performLeave);
|
|
7049
|
-
else performLeave();
|
|
7050
|
-
}
|
|
7033
|
+
else performTransitionLeave(el, transition, () => {
|
|
7034
|
+
if (vnode.ctx.isUnmounted) hostRemove(el);
|
|
7035
|
+
else hostInsert(el, container, anchor);
|
|
7036
|
+
}, true, true);
|
|
7051
7037
|
} else hostInsert(el, container, anchor);
|
|
7052
7038
|
};
|
|
7053
7039
|
const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
|
|
@@ -7269,13 +7255,15 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
|
|
|
7269
7255
|
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
7270
7256
|
const performRemove = () => {
|
|
7271
7257
|
remove();
|
|
7272
|
-
if (transition && !transition.persisted && transition.afterLeave) transition.afterLeave();
|
|
7258
|
+
if (transition && (force || !transition.persisted) && transition.afterLeave) transition.afterLeave();
|
|
7273
7259
|
};
|
|
7274
7260
|
if (force || isElement && transition && !transition.persisted) {
|
|
7275
7261
|
const { leave, delayLeave } = transition;
|
|
7276
7262
|
const performLeave = () => {
|
|
7263
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
7277
7264
|
if (el._isLeaving && force) el[leaveCbKey](true);
|
|
7278
|
-
|
|
7265
|
+
if (force && transition.persisted && !wasLeaving) remove();
|
|
7266
|
+
else leave(el, performRemove);
|
|
7279
7267
|
};
|
|
7280
7268
|
if (delayLeave) delayLeave(el, performRemove, performLeave);
|
|
7281
7269
|
else performLeave();
|
|
@@ -8298,7 +8286,7 @@ function isMemoSame(cached, memo) {
|
|
|
8298
8286
|
}
|
|
8299
8287
|
//#endregion
|
|
8300
8288
|
//#region packages/runtime-core/src/index.ts
|
|
8301
|
-
const version = "3.6.0-rc.
|
|
8289
|
+
const version = "3.6.0-rc.7";
|
|
8302
8290
|
const warn = NOOP;
|
|
8303
8291
|
/**
|
|
8304
8292
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -9197,13 +9185,11 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
9197
9185
|
_renderSlots() {
|
|
9198
9186
|
const outlets = this._getSlots();
|
|
9199
9187
|
const scopeId = this._instance.type.__scopeId;
|
|
9200
|
-
const slotReplacements = /* @__PURE__ */ new Map();
|
|
9201
9188
|
for (let i = 0; i < outlets.length; i++) {
|
|
9202
9189
|
const o = outlets[i];
|
|
9203
9190
|
const slotName = o.getAttribute("name") || "default";
|
|
9204
9191
|
const content = this._slots[slotName];
|
|
9205
9192
|
const parent = o.parentNode;
|
|
9206
|
-
const replacementNodes = [];
|
|
9207
9193
|
if (content) for (const n of content) {
|
|
9208
9194
|
if (scopeId && n.nodeType === 1) {
|
|
9209
9195
|
const id = scopeId + "-s";
|
|
@@ -9213,20 +9199,10 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
9213
9199
|
while (child = walker.nextNode()) child.setAttribute(id, "");
|
|
9214
9200
|
}
|
|
9215
9201
|
parent.insertBefore(n, o);
|
|
9216
|
-
replacementNodes.push(n);
|
|
9217
|
-
}
|
|
9218
|
-
else while (o.firstChild) {
|
|
9219
|
-
const child = o.firstChild;
|
|
9220
|
-
parent.insertBefore(child, o);
|
|
9221
|
-
replacementNodes.push(child);
|
|
9222
9202
|
}
|
|
9203
|
+
else while (o.firstChild) parent.insertBefore(o.firstChild, o);
|
|
9223
9204
|
parent.removeChild(o);
|
|
9224
|
-
slotReplacements.set(o, {
|
|
9225
|
-
nodes: replacementNodes,
|
|
9226
|
-
usedFallback: !content
|
|
9227
|
-
});
|
|
9228
9205
|
}
|
|
9229
|
-
this._updateSlotNodes(slotReplacements);
|
|
9230
9206
|
}
|
|
9231
9207
|
/**
|
|
9232
9208
|
* @internal
|
|
@@ -9265,7 +9241,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
9265
9241
|
* @internal
|
|
9266
9242
|
*/
|
|
9267
9243
|
_hasShadowRoot() {
|
|
9268
|
-
return this.
|
|
9244
|
+
return this._root !== this;
|
|
9269
9245
|
}
|
|
9270
9246
|
/**
|
|
9271
9247
|
* @internal
|
|
@@ -9298,10 +9274,6 @@ var VueElement = class extends VueElementBase {
|
|
|
9298
9274
|
if (this._instance && this._instance.ce) this._instance.ce = void 0;
|
|
9299
9275
|
this._app = this._instance = null;
|
|
9300
9276
|
}
|
|
9301
|
-
/**
|
|
9302
|
-
* Only called when shadowRoot is false
|
|
9303
|
-
*/
|
|
9304
|
-
_updateSlotNodes(replacements) {}
|
|
9305
9277
|
_createVNode() {
|
|
9306
9278
|
const baseProps = {};
|
|
9307
9279
|
if (!this.shadowRoot) baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this);
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-rc.
|
|
2
|
+
* @vue/compat v3.6.0-rc.7
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3975,7 +3975,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
3975
3975
|
else done();
|
|
3976
3976
|
},
|
|
3977
3977
|
clone(node) {
|
|
3978
|
-
return cloneHooks(node);
|
|
3978
|
+
return cloneHooks ? cloneHooks(node) : hooks;
|
|
3979
3979
|
}
|
|
3980
3980
|
};
|
|
3981
3981
|
return hooks;
|
|
@@ -4813,7 +4813,7 @@ function defineAsyncComponent(source) {
|
|
|
4813
4813
|
name: "AsyncComponentWrapper",
|
|
4814
4814
|
__asyncLoader: load,
|
|
4815
4815
|
__asyncHydrate(el, instance, hydrate) {
|
|
4816
|
-
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy);
|
|
4816
|
+
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, true);
|
|
4817
4817
|
},
|
|
4818
4818
|
get __asyncResolved() {
|
|
4819
4819
|
return getResolvedComp();
|
|
@@ -4932,10 +4932,10 @@ const useAsyncComponentState = (delay, timeout, onError, instance = currentInsta
|
|
|
4932
4932
|
* shared between core and vapor
|
|
4933
4933
|
* @internal
|
|
4934
4934
|
*/
|
|
4935
|
-
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy) {
|
|
4935
|
+
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, skipIfUpdated) {
|
|
4936
4936
|
const wasConnected = el.isConnected;
|
|
4937
4937
|
let patched = false;
|
|
4938
|
-
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
4938
|
+
if (skipIfUpdated) (instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
4939
4939
|
const performHydrate = () => {
|
|
4940
4940
|
if (patched) {
|
|
4941
4941
|
{
|
|
@@ -6539,7 +6539,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6539
6539
|
if (options.el) return vm.$mount(options.el);
|
|
6540
6540
|
else return vm;
|
|
6541
6541
|
}
|
|
6542
|
-
Vue.version = `2.6.14-compat:3.6.0-rc.
|
|
6542
|
+
Vue.version = `2.6.14-compat:3.6.0-rc.7`;
|
|
6543
6543
|
Vue.config = singletonApp.config;
|
|
6544
6544
|
Vue.use = (plugin, ...options) => {
|
|
6545
6545
|
if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
|
|
@@ -8505,24 +8505,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8505
8505
|
}
|
|
8506
8506
|
if (moveType !== 2 && shapeFlag & 1 && transition) {
|
|
8507
8507
|
if (moveType === 0) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense, true);
|
|
8508
|
-
else {
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
else hostInsert(el, container, anchor);
|
|
8513
|
-
};
|
|
8514
|
-
const performLeave = () => {
|
|
8515
|
-
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
8516
|
-
if (el._isLeaving) el[leaveCbKey](true);
|
|
8517
|
-
if (transition.persisted && !wasLeaving) remove();
|
|
8518
|
-
else leave(el, () => {
|
|
8519
|
-
remove();
|
|
8520
|
-
afterLeave && afterLeave();
|
|
8521
|
-
});
|
|
8522
|
-
};
|
|
8523
|
-
if (delayLeave) delayLeave(el, remove, performLeave);
|
|
8524
|
-
else performLeave();
|
|
8525
|
-
}
|
|
8508
|
+
else performTransitionLeave(el, transition, () => {
|
|
8509
|
+
if (vnode.ctx.isUnmounted) hostRemove(el);
|
|
8510
|
+
else hostInsert(el, container, anchor);
|
|
8511
|
+
}, true, true);
|
|
8526
8512
|
} else hostInsert(el, container, anchor);
|
|
8527
8513
|
};
|
|
8528
8514
|
const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
|
|
@@ -8756,13 +8742,15 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
|
|
|
8756
8742
|
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
8757
8743
|
const performRemove = () => {
|
|
8758
8744
|
remove();
|
|
8759
|
-
if (transition && !transition.persisted && transition.afterLeave) transition.afterLeave();
|
|
8745
|
+
if (transition && (force || !transition.persisted) && transition.afterLeave) transition.afterLeave();
|
|
8760
8746
|
};
|
|
8761
8747
|
if (force || isElement && transition && !transition.persisted) {
|
|
8762
8748
|
const { leave, delayLeave } = transition;
|
|
8763
8749
|
const performLeave = () => {
|
|
8750
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
8764
8751
|
if (el._isLeaving && force) el[leaveCbKey](true);
|
|
8765
|
-
|
|
8752
|
+
if (force && transition.persisted && !wasLeaving) remove();
|
|
8753
|
+
else leave(el, performRemove);
|
|
8766
8754
|
};
|
|
8767
8755
|
if (delayLeave) delayLeave(el, performRemove, performLeave);
|
|
8768
8756
|
else performLeave();
|
|
@@ -10093,7 +10081,7 @@ function isMemoSame(cached, memo) {
|
|
|
10093
10081
|
}
|
|
10094
10082
|
//#endregion
|
|
10095
10083
|
//#region packages/runtime-core/src/index.ts
|
|
10096
|
-
const version = "3.6.0-rc.
|
|
10084
|
+
const version = "3.6.0-rc.7";
|
|
10097
10085
|
const warn = warn$1;
|
|
10098
10086
|
/**
|
|
10099
10087
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -11090,13 +11078,11 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
11090
11078
|
_renderSlots() {
|
|
11091
11079
|
const outlets = this._getSlots();
|
|
11092
11080
|
const scopeId = this._instance.type.__scopeId;
|
|
11093
|
-
const slotReplacements = /* @__PURE__ */ new Map();
|
|
11094
11081
|
for (let i = 0; i < outlets.length; i++) {
|
|
11095
11082
|
const o = outlets[i];
|
|
11096
11083
|
const slotName = o.getAttribute("name") || "default";
|
|
11097
11084
|
const content = this._slots[slotName];
|
|
11098
11085
|
const parent = o.parentNode;
|
|
11099
|
-
const replacementNodes = [];
|
|
11100
11086
|
if (content) for (const n of content) {
|
|
11101
11087
|
if (scopeId && n.nodeType === 1) {
|
|
11102
11088
|
const id = scopeId + "-s";
|
|
@@ -11106,20 +11092,10 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
11106
11092
|
while (child = walker.nextNode()) child.setAttribute(id, "");
|
|
11107
11093
|
}
|
|
11108
11094
|
parent.insertBefore(n, o);
|
|
11109
|
-
replacementNodes.push(n);
|
|
11110
|
-
}
|
|
11111
|
-
else while (o.firstChild) {
|
|
11112
|
-
const child = o.firstChild;
|
|
11113
|
-
parent.insertBefore(child, o);
|
|
11114
|
-
replacementNodes.push(child);
|
|
11115
11095
|
}
|
|
11096
|
+
else while (o.firstChild) parent.insertBefore(o.firstChild, o);
|
|
11116
11097
|
parent.removeChild(o);
|
|
11117
|
-
slotReplacements.set(o, {
|
|
11118
|
-
nodes: replacementNodes,
|
|
11119
|
-
usedFallback: !content
|
|
11120
|
-
});
|
|
11121
11098
|
}
|
|
11122
|
-
this._updateSlotNodes(slotReplacements);
|
|
11123
11099
|
}
|
|
11124
11100
|
/**
|
|
11125
11101
|
* @internal
|
|
@@ -11158,7 +11134,7 @@ var VueElementBase = class VueElementBase extends BaseClass {
|
|
|
11158
11134
|
* @internal
|
|
11159
11135
|
*/
|
|
11160
11136
|
_hasShadowRoot() {
|
|
11161
|
-
return this.
|
|
11137
|
+
return this._root !== this;
|
|
11162
11138
|
}
|
|
11163
11139
|
/**
|
|
11164
11140
|
* @internal
|
|
@@ -11203,10 +11179,6 @@ var VueElement = class extends VueElementBase {
|
|
|
11203
11179
|
if (this._instance && this._instance.ce) this._instance.ce = void 0;
|
|
11204
11180
|
this._app = this._instance = null;
|
|
11205
11181
|
}
|
|
11206
|
-
/**
|
|
11207
|
-
* Only called when shadowRoot is false
|
|
11208
|
-
*/
|
|
11209
|
-
_updateSlotNodes(replacements) {}
|
|
11210
11182
|
_createVNode() {
|
|
11211
11183
|
const baseProps = {};
|
|
11212
11184
|
if (!this.shadowRoot) baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this);
|