feat: renderTracked & renderTriggered

This commit is contained in:
Evan You 2018-09-24 14:05:18 -04:00
parent 75bfa80997
commit ef1d621162

View File

@ -36,15 +36,17 @@ export interface MountedComponent<D = Data, P = Data> extends Component {
$children: MountedComponent[] $children: MountedComponent[]
$options: ComponentOptions<D, P> $options: ComponentOptions<D, P>
render: RenderFunction<P> render(props: P, slots: Slots): any
renderError?: (e: Error) => any renderError?(e: Error): any
renderTracked?(e: DebuggerEvent): void
renderTriggered?(e: DebuggerEvent): void
data?(): Partial<D> data?(): Partial<D>
beforeCreate?(): void beforeCreate?(): void
created?(): void created?(): void
beforeMount?(): void beforeMount?(): void
mounted?(): void mounted?(): void
beforeUpdate?(e: DebuggerEvent): void beforeUpdate?(vnode: VNode): void
updated?(): void updated?(vnode: VNode): void
beforeDestroy?(): void beforeDestroy?(): void
destroyed?(): void destroyed?(): void
errorCaptured?(): (err: Error, type: ErrorTypes) => boolean | void errorCaptured?(): (err: Error, type: ErrorTypes) => boolean | void