feat: experimental time-slicing

This commit is contained in:
Evan You
2018-11-01 06:58:06 +09:00
parent e6be55a498
commit 6ba02827b1
7 changed files with 284 additions and 90 deletions

View File

@@ -1,6 +1,8 @@
import { NodeOps } from '@vue/runtime-core'
const svgNS = 'http://www.w3.org/2000/svg'
export const nodeOps = {
export const nodeOps: NodeOps = {
createElement: (tag: string, isSVG?: boolean): Element =>
isSVG ? document.createElementNS(svgNS, tag) : document.createElement(tag),