@vue/runtime-dom 3.5.0-beta.2 → 3.5.0-rc.1
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 +7 -3
- package/dist/runtime-dom.cjs.prod.js +7 -3
- package/dist/runtime-dom.d.ts +4 -2
- package/dist/runtime-dom.esm-browser.js +294 -248
- package/dist/runtime-dom.esm-browser.prod.js +2 -2
- package/dist/runtime-dom.esm-bundler.js +7 -3
- package/dist/runtime-dom.global.js +285 -228
- package/dist/runtime-dom.global.prod.js +2 -2
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.0-
|
|
2
|
+
* @vue/runtime-dom v3.5.0-rc.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -551,8 +551,9 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecial
|
|
|
551
551
|
|
|
552
552
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
553
553
|
if (key === "innerHTML" || key === "textContent") {
|
|
554
|
-
if (value
|
|
555
|
-
|
|
554
|
+
if (value != null) {
|
|
555
|
+
el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
556
|
+
}
|
|
556
557
|
return;
|
|
557
558
|
}
|
|
558
559
|
const tag = el.tagName;
|
|
@@ -979,6 +980,9 @@ class VueElement extends BaseClass {
|
|
|
979
980
|
delete this._props[key];
|
|
980
981
|
} else {
|
|
981
982
|
this._props[key] = val;
|
|
983
|
+
if (key === "key" && this._app) {
|
|
984
|
+
this._app._ceVNode.key = val;
|
|
985
|
+
}
|
|
982
986
|
}
|
|
983
987
|
if (shouldUpdate && this._instance) {
|
|
984
988
|
this._update();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.0-
|
|
2
|
+
* @vue/runtime-dom v3.5.0-rc.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -536,8 +536,9 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecial
|
|
|
536
536
|
|
|
537
537
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
538
538
|
if (key === "innerHTML" || key === "textContent") {
|
|
539
|
-
if (value
|
|
540
|
-
|
|
539
|
+
if (value != null) {
|
|
540
|
+
el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
541
|
+
}
|
|
541
542
|
return;
|
|
542
543
|
}
|
|
543
544
|
const tag = el.tagName;
|
|
@@ -934,6 +935,9 @@ class VueElement extends BaseClass {
|
|
|
934
935
|
delete this._props[key];
|
|
935
936
|
} else {
|
|
936
937
|
this._props[key] = val;
|
|
938
|
+
if (key === "key" && this._app) {
|
|
939
|
+
this._app._ceVNode.key = val;
|
|
940
|
+
}
|
|
937
941
|
}
|
|
938
942
|
if (shouldUpdate && this._instance) {
|
|
939
943
|
this._update();
|
package/dist/runtime-dom.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive, App, SetupContext, RenderFunction, ComponentOptions, ComponentObjectPropsOptions, EmitsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentInjectOptions, SlotsType, Component, ComponentProvideOptions, ExtractPropTypes, EmitsToProps, ComponentOptionsBase, CreateComponentPublicInstanceWithMixins, DefineComponent, ComponentCustomElementInterface, CreateAppFunction, ConcreteComponent, VNodeRef, RootRenderFunction, RootHydrateFunction } from '@vue/runtime-core';
|
|
1
|
+
import { BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive, App, SetupContext, RenderFunction, ComponentOptions, ComponentObjectPropsOptions, EmitsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentInjectOptions, SlotsType, Component, ComponentProvideOptions, ExtractPropTypes, EmitsToProps, ComponentOptionsBase, CreateComponentPublicInstanceWithMixins, ComponentPublicInstance, DefineComponent, ComponentCustomElementInterface, CreateAppFunction, ConcreteComponent, VNodeRef, RootRenderFunction, RootHydrateFunction } from '@vue/runtime-core';
|
|
2
2
|
export * from '@vue/runtime-core';
|
|
3
3
|
import * as CSS from 'csstype';
|
|
4
4
|
|
|
@@ -103,7 +103,9 @@ export declare function defineCustomElement<RuntimePropsOptions extends Componen
|
|
|
103
103
|
props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[];
|
|
104
104
|
} & ComponentOptionsBase<ResolvedProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, // Defaults
|
|
105
105
|
InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<Readonly<ResolvedProps>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, false, InjectOptions, Slots, LocalComponents, Directives, Exposed>>, extraOptions?: CustomElementOptions): VueElementConstructor<ResolvedProps>;
|
|
106
|
-
export declare function defineCustomElement<T extends
|
|
106
|
+
export declare function defineCustomElement<T extends {
|
|
107
|
+
new (...args: any[]): ComponentPublicInstance<any>;
|
|
108
|
+
}>(options: T, extraOptions?: CustomElementOptions): VueElementConstructor<T extends DefineComponent<infer P, any, any, any> ? P : unknown>;
|
|
107
109
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
108
110
|
export declare const defineSSRCustomElement: typeof defineCustomElement;
|
|
109
111
|
declare const BaseClass: typeof HTMLElement;
|