chore: fix types
This commit is contained in:
parent
178e89305d
commit
5453e791ae
@ -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'
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user