wip: pass proper args to patchDOMProp
This commit is contained in:
parent
2677c91aba
commit
42967f1f5a
@ -65,3 +65,4 @@ export {
|
||||
DirectiveHook,
|
||||
DirectiveArguments
|
||||
} from './directives'
|
||||
export { SuspenseBoundary } from './suspense'
|
||||
|
@ -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,
|
||||
|
@ -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<Node, Element>,
|
||||
unmountChildren?: any
|
||||
) {
|
||||
switch (key) {
|
||||
@ -40,6 +45,7 @@ export function patchProp(
|
||||
nextValue,
|
||||
prevChildren,
|
||||
parentComponent,
|
||||
parentSuspense,
|
||||
unmountChildren
|
||||
)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user