@vue/runtime-dom 3.4.28 → 3.4.30
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-dom.cjs.js +10 -7
- package/dist/runtime-dom.cjs.prod.js +10 -7
- package/dist/runtime-dom.d.ts +7 -2
- package/dist/runtime-dom.esm-browser.js +72 -55
- package/dist/runtime-dom.esm-browser.prod.js +2 -9
- package/dist/runtime-dom.esm-bundler.js +11 -8
- package/dist/runtime-dom.global.js +72 -55
- package/dist/runtime-dom.global.prod.js +2 -10
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.4.
|
|
2
|
+
* @vue/runtime-dom v3.4.30
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -527,7 +527,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecial
|
|
|
527
527
|
if (value == null || isBoolean && !shared.includeBooleanAttr(value)) {
|
|
528
528
|
el.removeAttribute(key);
|
|
529
529
|
} else {
|
|
530
|
-
el.setAttribute(
|
|
530
|
+
el.setAttribute(
|
|
531
|
+
key,
|
|
532
|
+
isBoolean ? "" : shared.isSymbol(value) ? String(value) : value
|
|
533
|
+
);
|
|
531
534
|
}
|
|
532
535
|
}
|
|
533
536
|
}
|
|
@@ -688,7 +691,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
|
|
|
688
691
|
parentSuspense,
|
|
689
692
|
unmountChildren
|
|
690
693
|
);
|
|
691
|
-
if (key === "value" || key === "checked" || key === "selected") {
|
|
694
|
+
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
|
|
692
695
|
patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
693
696
|
}
|
|
694
697
|
} else {
|
|
@@ -736,8 +739,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
736
739
|
|
|
737
740
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
738
741
|
// @__NO_SIDE_EFFECTS__
|
|
739
|
-
function defineCustomElement(options, hydrate2) {
|
|
740
|
-
const Comp = runtimeCore.defineComponent(options);
|
|
742
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
743
|
+
const Comp = runtimeCore.defineComponent(options, extraOptions);
|
|
741
744
|
class VueCustomElement extends VueElement {
|
|
742
745
|
constructor(initialProps) {
|
|
743
746
|
super(Comp, initialProps, hydrate2);
|
|
@@ -747,8 +750,8 @@ function defineCustomElement(options, hydrate2) {
|
|
|
747
750
|
return VueCustomElement;
|
|
748
751
|
}
|
|
749
752
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
750
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
751
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
753
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
754
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
752
755
|
};
|
|
753
756
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
754
757
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.4.
|
|
2
|
+
* @vue/runtime-dom v3.4.30
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -513,7 +513,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecial
|
|
|
513
513
|
if (value == null || isBoolean && !shared.includeBooleanAttr(value)) {
|
|
514
514
|
el.removeAttribute(key);
|
|
515
515
|
} else {
|
|
516
|
-
el.setAttribute(
|
|
516
|
+
el.setAttribute(
|
|
517
|
+
key,
|
|
518
|
+
isBoolean ? "" : shared.isSymbol(value) ? String(value) : value
|
|
519
|
+
);
|
|
517
520
|
}
|
|
518
521
|
}
|
|
519
522
|
}
|
|
@@ -658,7 +661,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
|
|
|
658
661
|
parentSuspense,
|
|
659
662
|
unmountChildren
|
|
660
663
|
);
|
|
661
|
-
if (key === "value" || key === "checked" || key === "selected") {
|
|
664
|
+
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
|
|
662
665
|
patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
663
666
|
}
|
|
664
667
|
} else {
|
|
@@ -706,8 +709,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
706
709
|
|
|
707
710
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
708
711
|
// @__NO_SIDE_EFFECTS__
|
|
709
|
-
function defineCustomElement(options, hydrate2) {
|
|
710
|
-
const Comp = runtimeCore.defineComponent(options);
|
|
712
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
713
|
+
const Comp = runtimeCore.defineComponent(options, extraOptions);
|
|
711
714
|
class VueCustomElement extends VueElement {
|
|
712
715
|
constructor(initialProps) {
|
|
713
716
|
super(Comp, initialProps, hydrate2);
|
|
@@ -717,8 +720,8 @@ function defineCustomElement(options, hydrate2) {
|
|
|
717
720
|
return VueCustomElement;
|
|
718
721
|
}
|
|
719
722
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
720
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
721
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
723
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
724
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
722
725
|
};
|
|
723
726
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
724
727
|
};
|
package/dist/runtime-dom.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { SetupContext, RenderFunction, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, SlotsType, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, DefineComponent, RootHydrateFunction, ConcreteComponent, BaseTransitionProps, FunctionalComponent, ObjectDirective, VNodeRef, RootRenderFunction, CreateAppFunction } from '@vue/runtime-core';
|
|
1
|
+
import { SetupContext, RenderFunction, ComponentOptions, ComponentObjectPropsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, SlotsType, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, DefineComponent, RootHydrateFunction, ConcreteComponent, BaseTransitionProps, FunctionalComponent, ObjectDirective, VNodeRef, RootRenderFunction, CreateAppFunction } from '@vue/runtime-core';
|
|
2
2
|
export * from '@vue/runtime-core';
|
|
3
3
|
import * as CSS from 'csstype';
|
|
4
4
|
|
|
5
5
|
export type VueElementConstructor<P = {}> = {
|
|
6
6
|
new (initialProps?: Record<string, any>): VueElement & P;
|
|
7
7
|
};
|
|
8
|
-
export declare function defineCustomElement<Props, RawBindings = object>(setup: (props:
|
|
8
|
+
export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & {
|
|
9
|
+
props?: (keyof Props)[];
|
|
10
|
+
}): VueElementConstructor<Props>;
|
|
11
|
+
export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & {
|
|
12
|
+
props?: ComponentObjectPropsOptions<Props>;
|
|
13
|
+
}): VueElementConstructor<Props>;
|
|
9
14
|
export declare function defineCustomElement<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S> & {
|
|
10
15
|
styles?: string[];
|
|
11
16
|
}): VueElementConstructor<Props>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.4.
|
|
2
|
+
* @vue/runtime-dom v3.4.30
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -411,7 +411,7 @@ class ReactiveEffect {
|
|
|
411
411
|
/**
|
|
412
412
|
* @internal
|
|
413
413
|
*/
|
|
414
|
-
this._dirtyLevel =
|
|
414
|
+
this._dirtyLevel = 5;
|
|
415
415
|
/**
|
|
416
416
|
* @internal
|
|
417
417
|
*/
|
|
@@ -431,14 +431,20 @@ class ReactiveEffect {
|
|
|
431
431
|
recordEffectScope(this, scope);
|
|
432
432
|
}
|
|
433
433
|
get dirty() {
|
|
434
|
-
if (this._dirtyLevel === 2
|
|
434
|
+
if (this._dirtyLevel === 2)
|
|
435
|
+
return false;
|
|
436
|
+
if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
|
|
435
437
|
this._dirtyLevel = 1;
|
|
436
438
|
pauseTracking();
|
|
437
439
|
for (let i = 0; i < this._depsLength; i++) {
|
|
438
440
|
const dep = this.deps[i];
|
|
439
441
|
if (dep.computed) {
|
|
442
|
+
if (dep.computed.effect._dirtyLevel === 2) {
|
|
443
|
+
resetTracking();
|
|
444
|
+
return true;
|
|
445
|
+
}
|
|
440
446
|
triggerComputed(dep.computed);
|
|
441
|
-
if (this._dirtyLevel >=
|
|
447
|
+
if (this._dirtyLevel >= 5) {
|
|
442
448
|
break;
|
|
443
449
|
}
|
|
444
450
|
}
|
|
@@ -448,10 +454,10 @@ class ReactiveEffect {
|
|
|
448
454
|
}
|
|
449
455
|
resetTracking();
|
|
450
456
|
}
|
|
451
|
-
return this._dirtyLevel >=
|
|
457
|
+
return this._dirtyLevel >= 5;
|
|
452
458
|
}
|
|
453
459
|
set dirty(v) {
|
|
454
|
-
this._dirtyLevel = v ?
|
|
460
|
+
this._dirtyLevel = v ? 5 : 0;
|
|
455
461
|
}
|
|
456
462
|
run() {
|
|
457
463
|
this._dirtyLevel = 0;
|
|
@@ -573,8 +579,17 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
573
579
|
pauseScheduling();
|
|
574
580
|
for (const effect2 of dep.keys()) {
|
|
575
581
|
let tracking;
|
|
582
|
+
if (!dep.computed && effect2.computed) {
|
|
583
|
+
if (effect2._runnings > 0 && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
584
|
+
effect2._dirtyLevel = 2;
|
|
585
|
+
continue;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
576
588
|
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
577
589
|
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
590
|
+
if (effect2.computed && effect2._dirtyLevel === 2) {
|
|
591
|
+
effect2._shouldSchedule = true;
|
|
592
|
+
}
|
|
578
593
|
effect2._dirtyLevel = dirtyLevel;
|
|
579
594
|
}
|
|
580
595
|
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
@@ -582,7 +597,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
582
597
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
583
598
|
}
|
|
584
599
|
effect2.trigger();
|
|
585
|
-
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !==
|
|
600
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
|
|
586
601
|
effect2._shouldSchedule = false;
|
|
587
602
|
if (effect2.scheduler) {
|
|
588
603
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
@@ -674,7 +689,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
674
689
|
if (dep) {
|
|
675
690
|
triggerEffects(
|
|
676
691
|
dep,
|
|
677
|
-
|
|
692
|
+
5,
|
|
678
693
|
{
|
|
679
694
|
target,
|
|
680
695
|
type,
|
|
@@ -1277,7 +1292,7 @@ class ComputedRefImpl {
|
|
|
1277
1292
|
() => getter(this._value),
|
|
1278
1293
|
() => triggerRefValue(
|
|
1279
1294
|
this,
|
|
1280
|
-
this.effect._dirtyLevel ===
|
|
1295
|
+
this.effect._dirtyLevel === 3 ? 3 : 4
|
|
1281
1296
|
)
|
|
1282
1297
|
);
|
|
1283
1298
|
this.effect.computed = this;
|
|
@@ -1286,8 +1301,11 @@ class ComputedRefImpl {
|
|
|
1286
1301
|
}
|
|
1287
1302
|
get value() {
|
|
1288
1303
|
const self = toRaw(this);
|
|
1304
|
+
const lastDirtyLevel = self.effect._dirtyLevel;
|
|
1289
1305
|
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1290
|
-
|
|
1306
|
+
if (lastDirtyLevel !== 3) {
|
|
1307
|
+
triggerRefValue(self, 5);
|
|
1308
|
+
}
|
|
1291
1309
|
}
|
|
1292
1310
|
trackRefValue(self);
|
|
1293
1311
|
if (self.effect._dirtyLevel >= 2) {
|
|
@@ -1296,7 +1314,7 @@ class ComputedRefImpl {
|
|
|
1296
1314
|
|
|
1297
1315
|
getter: `, this.getter);
|
|
1298
1316
|
}
|
|
1299
|
-
triggerRefValue(self,
|
|
1317
|
+
triggerRefValue(self, 3);
|
|
1300
1318
|
}
|
|
1301
1319
|
return self._value;
|
|
1302
1320
|
}
|
|
@@ -1351,7 +1369,7 @@ function trackRefValue(ref2) {
|
|
|
1351
1369
|
);
|
|
1352
1370
|
}
|
|
1353
1371
|
}
|
|
1354
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1372
|
+
function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
|
|
1355
1373
|
ref2 = toRaw(ref2);
|
|
1356
1374
|
const dep = ref2.dep;
|
|
1357
1375
|
if (dep) {
|
|
@@ -1402,12 +1420,12 @@ class RefImpl {
|
|
|
1402
1420
|
const oldVal = this._rawValue;
|
|
1403
1421
|
this._rawValue = newVal;
|
|
1404
1422
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1405
|
-
triggerRefValue(this,
|
|
1423
|
+
triggerRefValue(this, 5, newVal, oldVal);
|
|
1406
1424
|
}
|
|
1407
1425
|
}
|
|
1408
1426
|
}
|
|
1409
1427
|
function triggerRef(ref2) {
|
|
1410
|
-
triggerRefValue(ref2,
|
|
1428
|
+
triggerRefValue(ref2, 5, ref2.value );
|
|
1411
1429
|
}
|
|
1412
1430
|
function unref(ref2) {
|
|
1413
1431
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -2735,7 +2753,6 @@ const SuspenseImpl = {
|
|
|
2735
2753
|
}
|
|
2736
2754
|
},
|
|
2737
2755
|
hydrate: hydrateSuspense,
|
|
2738
|
-
create: createSuspenseBoundary,
|
|
2739
2756
|
normalize: normalizeSuspenseChildren
|
|
2740
2757
|
};
|
|
2741
2758
|
const Suspense = SuspenseImpl ;
|
|
@@ -5293,18 +5310,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
5293
5310
|
let domType = node.nodeType;
|
|
5294
5311
|
vnode.el = node;
|
|
5295
5312
|
{
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
value: vnode,
|
|
5299
|
-
enumerable: false
|
|
5300
|
-
});
|
|
5301
|
-
}
|
|
5302
|
-
if (!("__vueParentComponent" in node)) {
|
|
5303
|
-
Object.defineProperty(node, "__vueParentComponent", {
|
|
5304
|
-
value: parentComponent,
|
|
5305
|
-
enumerable: false
|
|
5306
|
-
});
|
|
5307
|
-
}
|
|
5313
|
+
def(node, "__vnode", vnode, true);
|
|
5314
|
+
def(node, "__vueParentComponent", parentComponent, true);
|
|
5308
5315
|
}
|
|
5309
5316
|
if (patchFlag === -2) {
|
|
5310
5317
|
optimized = false;
|
|
@@ -5527,7 +5534,9 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
5527
5534
|
if (props) {
|
|
5528
5535
|
{
|
|
5529
5536
|
for (const key in props) {
|
|
5530
|
-
if (
|
|
5537
|
+
if (// #11189 skip if this node has directives that have created hooks
|
|
5538
|
+
// as it could have mutated the DOM in any possible way
|
|
5539
|
+
!(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
5531
5540
|
logMismatchError();
|
|
5532
5541
|
}
|
|
5533
5542
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -5702,7 +5711,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5702
5711
|
return [hydrate, hydrateNode];
|
|
5703
5712
|
}
|
|
5704
5713
|
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
5705
|
-
var _a;
|
|
5706
5714
|
let mismatchType;
|
|
5707
5715
|
let mismatchKey;
|
|
5708
5716
|
let actual;
|
|
@@ -5725,13 +5733,8 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
5725
5733
|
}
|
|
5726
5734
|
}
|
|
5727
5735
|
}
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
(root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
|
|
5731
|
-
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
5732
|
-
for (const key2 in cssVars) {
|
|
5733
|
-
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
5734
|
-
}
|
|
5736
|
+
if (instance) {
|
|
5737
|
+
resolveCssVars(instance, vnode, expectedMap);
|
|
5735
5738
|
}
|
|
5736
5739
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
5737
5740
|
mismatchType = mismatchKey = "style";
|
|
@@ -5791,8 +5794,8 @@ function toStyleMap(str) {
|
|
|
5791
5794
|
const styleMap = /* @__PURE__ */ new Map();
|
|
5792
5795
|
for (const item of str.split(";")) {
|
|
5793
5796
|
let [key, value] = item.split(":");
|
|
5794
|
-
key = key
|
|
5795
|
-
value = value
|
|
5797
|
+
key = key.trim();
|
|
5798
|
+
value = value && value.trim();
|
|
5796
5799
|
if (key && value) {
|
|
5797
5800
|
styleMap.set(key, value);
|
|
5798
5801
|
}
|
|
@@ -5810,6 +5813,18 @@ function isMapEqual(a, b) {
|
|
|
5810
5813
|
}
|
|
5811
5814
|
return true;
|
|
5812
5815
|
}
|
|
5816
|
+
function resolveCssVars(instance, vnode, expectedMap) {
|
|
5817
|
+
const root = instance.subTree;
|
|
5818
|
+
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
5819
|
+
const cssVars = instance.getCssVars();
|
|
5820
|
+
for (const key in cssVars) {
|
|
5821
|
+
expectedMap.set(`--${key}`, String(cssVars[key]));
|
|
5822
|
+
}
|
|
5823
|
+
}
|
|
5824
|
+
if (vnode === root && instance.parent) {
|
|
5825
|
+
resolveCssVars(instance.parent, instance.vnode, expectedMap);
|
|
5826
|
+
}
|
|
5827
|
+
}
|
|
5813
5828
|
|
|
5814
5829
|
let supported;
|
|
5815
5830
|
let perf;
|
|
@@ -6127,14 +6142,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6127
6142
|
}
|
|
6128
6143
|
}
|
|
6129
6144
|
{
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
enumerable: false
|
|
6133
|
-
});
|
|
6134
|
-
Object.defineProperty(el, "__vueParentComponent", {
|
|
6135
|
-
value: parentComponent,
|
|
6136
|
-
enumerable: false
|
|
6137
|
-
});
|
|
6145
|
+
def(el, "__vnode", vnode, true);
|
|
6146
|
+
def(el, "__vueParentComponent", parentComponent, true);
|
|
6138
6147
|
}
|
|
6139
6148
|
if (dirs) {
|
|
6140
6149
|
invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
|
|
@@ -6196,6 +6205,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6196
6205
|
};
|
|
6197
6206
|
const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
|
|
6198
6207
|
const el = n2.el = n1.el;
|
|
6208
|
+
{
|
|
6209
|
+
el.__vnode = n2;
|
|
6210
|
+
}
|
|
6199
6211
|
let { patchFlag, dynamicChildren, dirs } = n2;
|
|
6200
6212
|
patchFlag |= n1.patchFlag & 16;
|
|
6201
6213
|
const oldProps = n1.props || EMPTY_OBJ;
|
|
@@ -7090,6 +7102,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7090
7102
|
dirs,
|
|
7091
7103
|
memoIndex
|
|
7092
7104
|
} = vnode;
|
|
7105
|
+
if (patchFlag === -2) {
|
|
7106
|
+
optimized = false;
|
|
7107
|
+
}
|
|
7093
7108
|
if (ref != null) {
|
|
7094
7109
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
7095
7110
|
}
|
|
@@ -7121,7 +7136,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7121
7136
|
vnode,
|
|
7122
7137
|
parentComponent,
|
|
7123
7138
|
parentSuspense,
|
|
7124
|
-
optimized,
|
|
7125
7139
|
internals,
|
|
7126
7140
|
doRemove
|
|
7127
7141
|
);
|
|
@@ -8397,7 +8411,7 @@ const TeleportImpl = {
|
|
|
8397
8411
|
}
|
|
8398
8412
|
updateCssVars(n2);
|
|
8399
8413
|
},
|
|
8400
|
-
remove(vnode, parentComponent, parentSuspense,
|
|
8414
|
+
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
8401
8415
|
const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
|
|
8402
8416
|
if (target) {
|
|
8403
8417
|
hostRemove(targetAnchor);
|
|
@@ -9569,7 +9583,7 @@ function isMemoSame(cached, memo) {
|
|
|
9569
9583
|
return true;
|
|
9570
9584
|
}
|
|
9571
9585
|
|
|
9572
|
-
const version = "3.4.
|
|
9586
|
+
const version = "3.4.30";
|
|
9573
9587
|
const warn = warn$1 ;
|
|
9574
9588
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9575
9589
|
const devtools = devtools$1 ;
|
|
@@ -10149,7 +10163,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
|
|
|
10149
10163
|
if (value == null || isBoolean && !includeBooleanAttr(value)) {
|
|
10150
10164
|
el.removeAttribute(key);
|
|
10151
10165
|
} else {
|
|
10152
|
-
el.setAttribute(
|
|
10166
|
+
el.setAttribute(
|
|
10167
|
+
key,
|
|
10168
|
+
isBoolean ? "" : isSymbol(value) ? String(value) : value
|
|
10169
|
+
);
|
|
10153
10170
|
}
|
|
10154
10171
|
}
|
|
10155
10172
|
}
|
|
@@ -10310,7 +10327,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
|
|
|
10310
10327
|
parentSuspense,
|
|
10311
10328
|
unmountChildren
|
|
10312
10329
|
);
|
|
10313
|
-
if (key === "value" || key === "checked" || key === "selected") {
|
|
10330
|
+
if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
|
|
10314
10331
|
patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
10315
10332
|
}
|
|
10316
10333
|
} else {
|
|
@@ -10358,8 +10375,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
10358
10375
|
|
|
10359
10376
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
10360
10377
|
// @__NO_SIDE_EFFECTS__
|
|
10361
|
-
function defineCustomElement(options, hydrate2) {
|
|
10362
|
-
const Comp = defineComponent(options);
|
|
10378
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
10379
|
+
const Comp = defineComponent(options, extraOptions);
|
|
10363
10380
|
class VueCustomElement extends VueElement {
|
|
10364
10381
|
constructor(initialProps) {
|
|
10365
10382
|
super(Comp, initialProps, hydrate2);
|
|
@@ -10369,8 +10386,8 @@ function defineCustomElement(options, hydrate2) {
|
|
|
10369
10386
|
return VueCustomElement;
|
|
10370
10387
|
}
|
|
10371
10388
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
10372
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
10373
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
10389
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
10390
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
10374
10391
|
};
|
|
10375
10392
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
10376
10393
|
};
|