@vue/runtime-dom
Advanced tools
| /** | ||
| * @vue/runtime-dom v3.6.0-beta.10 | ||
| * @vue/runtime-dom v3.6.0-beta.11 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -380,3 +380,6 @@ * @license MIT | ||
| if (key === "display") hasControlledDisplay = true; | ||
| setStyle(style, key, next[key]); | ||
| const value = next[key]; | ||
| if (value != null) { | ||
| if (!shouldPreserveTextareaResizeStyle(el, key, !(0, _vue_shared.isString)(prev) && prev ? prev[key] : void 0, value)) setStyle(style, key, value); | ||
| } else setStyle(style, key, ""); | ||
| } | ||
@@ -429,2 +432,10 @@ } else if (isCssString) { | ||
| } | ||
| /** | ||
| * Browsers update textarea width/height directly during native resize. | ||
| * Only special-case this common textarea path for now; other resize scenarios | ||
| * still follow normal vnode style patching. | ||
| */ | ||
| function shouldPreserveTextareaResizeStyle(el, key, prev, next) { | ||
| return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && (0, _vue_shared.isString)(next) && prev === next; | ||
| } | ||
| //#endregion | ||
@@ -864,3 +875,6 @@ //#region packages/runtime-dom/src/modules/attrs.ts | ||
| parent.removeChild(o); | ||
| slotReplacements.set(o, replacementNodes); | ||
| slotReplacements.set(o, { | ||
| nodes: replacementNodes, | ||
| usedFallback: !content | ||
| }); | ||
| } | ||
@@ -867,0 +881,0 @@ this._updateSlotNodes(slotReplacements); |
| /** | ||
| * @vue/runtime-dom v3.6.0-beta.10 | ||
| * @vue/runtime-dom v3.6.0-beta.11 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -376,3 +376,6 @@ * @license MIT | ||
| if (key === "display") hasControlledDisplay = true; | ||
| setStyle(style, key, next[key]); | ||
| const value = next[key]; | ||
| if (value != null) { | ||
| if (!shouldPreserveTextareaResizeStyle(el, key, !(0, _vue_shared.isString)(prev) && prev ? prev[key] : void 0, value)) setStyle(style, key, value); | ||
| } else setStyle(style, key, ""); | ||
| } | ||
@@ -423,2 +426,10 @@ } else if (isCssString) { | ||
| } | ||
| /** | ||
| * Browsers update textarea width/height directly during native resize. | ||
| * Only special-case this common textarea path for now; other resize scenarios | ||
| * still follow normal vnode style patching. | ||
| */ | ||
| function shouldPreserveTextareaResizeStyle(el, key, prev, next) { | ||
| return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && (0, _vue_shared.isString)(next) && prev === next; | ||
| } | ||
| //#endregion | ||
@@ -831,3 +842,6 @@ //#region packages/runtime-dom/src/modules/attrs.ts | ||
| parent.removeChild(o); | ||
| slotReplacements.set(o, replacementNodes); | ||
| slotReplacements.set(o, { | ||
| nodes: replacementNodes, | ||
| usedFallback: !content | ||
| }); | ||
| } | ||
@@ -834,0 +848,0 @@ this._updateSlotNodes(slotReplacements); |
@@ -1374,3 +1374,6 @@ import { App, BaseTransitionProps, Component, ComponentCustomElementInterface, ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentProvideOptions, ComponentPublicInstance, ComputedOptions, ConcreteComponent, CreateAppFunction, CreateComponentPublicInstanceWithMixins, DefineComponent, Directive, EmitsOptions, EmitsToProps, ExtractPropTypes, FunctionalComponent, MethodOptions, ObjectDirective, RenderFunction, RendererOptions, RootHydrateFunction, RootRenderFunction, SetupContext, SlotsType, VNodeRef } from "@vue/runtime-core"; | ||
| protected abstract _unmount(): void; | ||
| protected abstract _updateSlotNodes(slot: Map<Node, Node[]>): void; | ||
| protected abstract _updateSlotNodes(slot: Map<Node, { | ||
| nodes: Node[]; | ||
| usedFallback: boolean; | ||
| }>): void; | ||
| constructor(def: Def, props: Record<string, any> | undefined, createAppFn: CreateAppFunction<E, C>); | ||
@@ -1412,3 +1415,6 @@ connectedCallback(): void; | ||
| */ | ||
| protected _updateSlotNodes(replacements: Map<Node, Node[]>): void; | ||
| protected _updateSlotNodes(replacements: Map<Node, { | ||
| nodes: Node[]; | ||
| usedFallback: boolean; | ||
| }>): void; | ||
| private _createVNode; | ||
@@ -1415,0 +1421,0 @@ } |
| /** | ||
| * @vue/runtime-dom v3.6.0-beta.10 | ||
| * @vue/runtime-dom v3.6.0-beta.11 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -454,3 +454,6 @@ * @license MIT | ||
| if (key === "display") hasControlledDisplay = true; | ||
| setStyle(style, key, next[key]); | ||
| const value = next[key]; | ||
| if (value != null) { | ||
| if (!shouldPreserveTextareaResizeStyle(el, key, !isString(prev) && prev ? prev[key] : void 0, value)) setStyle(style, key, value); | ||
| } else setStyle(style, key, ""); | ||
| } | ||
@@ -505,2 +508,10 @@ } else if (isCssString) { | ||
| } | ||
| /** | ||
| * Browsers update textarea width/height directly during native resize. | ||
| * Only special-case this common textarea path for now; other resize scenarios | ||
| * still follow normal vnode style patching. | ||
| */ | ||
| function shouldPreserveTextareaResizeStyle(el, key, prev, next) { | ||
| return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next; | ||
| } | ||
| //#endregion | ||
@@ -940,3 +951,6 @@ //#region packages/runtime-dom/src/modules/attrs.ts | ||
| parent.removeChild(o); | ||
| slotReplacements.set(o, replacementNodes); | ||
| slotReplacements.set(o, { | ||
| nodes: replacementNodes, | ||
| usedFallback: !content | ||
| }); | ||
| } | ||
@@ -943,0 +957,0 @@ this._updateSlotNodes(slotReplacements); |
+4
-4
| { | ||
| "name": "@vue/runtime-dom", | ||
| "version": "3.6.0-beta.10", | ||
| "version": "3.6.0-beta.11", | ||
| "description": "@vue/runtime-dom", | ||
@@ -53,5 +53,5 @@ "main": "index.js", | ||
| "csstype": "^3.2.3", | ||
| "@vue/shared": "3.6.0-beta.10", | ||
| "@vue/runtime-core": "3.6.0-beta.10", | ||
| "@vue/reactivity": "3.6.0-beta.10" | ||
| "@vue/shared": "3.6.0-beta.11", | ||
| "@vue/runtime-core": "3.6.0-beta.11", | ||
| "@vue/reactivity": "3.6.0-beta.11" | ||
| }, | ||
@@ -58,0 +58,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1196243
0.53%26727
0.51%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated