chore: setup all packages

This commit is contained in:
Evan You
2018-09-19 12:26:50 -04:00
parent 898b1106c9
commit d1bc6ee8d6
36 changed files with 152 additions and 17 deletions

View File

@@ -1,18 +0,0 @@
import { VNode, ChildrenFlags } from '@vue/core'
export function patchDOMProp(
el: any,
key: string,
value: any,
prevVNode: VNode,
unmountChildren: any
) {
if (key === 'innerHTML' || key === 'textContent') {
if (prevVNode && prevVNode.children) {
unmountChildren(prevVNode.children, prevVNode.childFlags)
prevVNode.children = null
prevVNode.childFlags = ChildrenFlags.NO_CHILDREN
}
}
el[key] = value
}