chore: fix types

This commit is contained in:
Evan You 2020-06-26 10:07:07 -04:00
parent 178e89305d
commit 5453e791ae
2 changed files with 7 additions and 8 deletions

View File

@ -1,12 +1,7 @@
import { currentRenderingInstance } from '../componentRenderUtils' import { currentRenderingInstance } from '../componentRenderUtils'
import { import { currentInstance, Component, FunctionalComponent } from '../component'
currentInstance,
Component,
FunctionalComponent,
ComponentOptions
} from '../component'
import { Directive } from '../directives' import { Directive } from '../directives'
import { camelize, capitalize, isString, isObject } from '@vue/shared' import { camelize, capitalize, isString } from '@vue/shared'
import { warn } from '../warning' import { warn } from '../warning'
const COMPONENTS = 'components' const COMPONENTS = 'components'

View File

@ -17,7 +17,11 @@ export function endMeasure(instance: ComponentInternalInstance, type: string) {
const startTag = `vue-${type}-${instance.uid}` const startTag = `vue-${type}-${instance.uid}`
const endTag = startTag + `:end` const endTag = startTag + `:end`
perf.mark(endTag) perf.mark(endTag)
perf.measure(`<${formatComponentName(instance)}> ${type}`, startTag, endTag) perf.measure(
`<${formatComponentName(instance, instance.type)}> ${type}`,
startTag,
endTag
)
perf.clearMarks(startTag) perf.clearMarks(startTag)
perf.clearMarks(endTag) perf.clearMarks(endTag)
} }