wip: compare perf
This commit is contained in:
@@ -9,8 +9,8 @@ import { VNode } from '@vue/runtime-core'
|
||||
export function patchProp(
|
||||
el: Element,
|
||||
key: string,
|
||||
prevValue: any,
|
||||
nextValue: any,
|
||||
prevValue: any,
|
||||
isSVG: boolean,
|
||||
prevChildren?: VNode[],
|
||||
unmountChildren?: any
|
||||
|
||||
@@ -6,7 +6,7 @@ const svgNS = 'http://www.w3.org/2000/svg'
|
||||
export const DOMRendererOptions: RendererOptions = {
|
||||
patchProp,
|
||||
|
||||
insert: (parent: Node, child: Node, anchor?: Node) => {
|
||||
insert: (child: Node, parent: Node, anchor?: Node) => {
|
||||
if (anchor != null) {
|
||||
parent.insertBefore(child, anchor)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user