From 42967f1f5afc7ee276a1888fea32475c8defef70 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 10 Sep 2019 12:11:08 -0400 Subject: [PATCH] wip: pass proper args to patchDOMProp --- packages/runtime-core/src/index.ts | 1 + packages/runtime-dom/src/modules/props.ts | 2 +- packages/runtime-dom/src/patchProp.ts | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index aebfb64020..d39d3083ee 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -65,3 +65,4 @@ export { DirectiveHook, DirectiveArguments } from './directives' +export { SuspenseBoundary } from './suspense' diff --git a/packages/runtime-dom/src/modules/props.ts b/packages/runtime-dom/src/modules/props.ts index 05c01806a5..f7519ac93c 100644 --- a/packages/runtime-dom/src/modules/props.ts +++ b/packages/runtime-dom/src/modules/props.ts @@ -2,7 +2,7 @@ export function patchDOMProp( el: any, key: string, value: any, - // the next 3 args are passed only due to potential innerHTML/textContent + // the following args are passed only due to potential innerHTML/textContent // overriding existing VNodes, in which case the old tree must be properly // unmounted. prevChildren: any, diff --git a/packages/runtime-dom/src/patchProp.ts b/packages/runtime-dom/src/patchProp.ts index a634cd98ff..82b84f1f88 100644 --- a/packages/runtime-dom/src/patchProp.ts +++ b/packages/runtime-dom/src/patchProp.ts @@ -4,7 +4,11 @@ import { patchAttr } from './modules/attrs' import { patchDOMProp } from './modules/props' import { patchEvent } from './modules/events' import { isOn } from '@vue/shared' -import { VNode, ComponentInternalInstance } from '@vue/runtime-core' +import { + VNode, + ComponentInternalInstance, + SuspenseBoundary +} from '@vue/runtime-core' export function patchProp( el: Element, @@ -14,6 +18,7 @@ export function patchProp( isSVG: boolean, prevChildren?: VNode[], parentComponent?: ComponentInternalInstance, + parentSuspense?: SuspenseBoundary, unmountChildren?: any ) { switch (key) { @@ -40,6 +45,7 @@ export function patchProp( nextValue, prevChildren, parentComponent, + parentSuspense, unmountChildren ) } else { -- 2.47.3