Interface ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, I, II, S> interface ComponentOptionsBase < Props , RawBindings , D , C , M , Mixin , Extends , E , EE , Defaults , I , II , S > { __defaults ?: Defaults ; __differentiator ?: keyof D | keyof C | keyof M ; __file ?: string ; __isBuiltIn ?: boolean ; __isFragment ?: undefined ; __isSuspense ?: undefined ; __isTeleport ?: undefined ; __name ?: string ; call ?: ( ( this : unknown ,
... args : unknown [] ) => never ) ; compatConfig ?: CompatConfig ; compilerOptions ?: RuntimeCompilerOptions ; components ?: Record < string , Component < any , any , any , ComputedOptions , MethodOptions , {} , any > > ; computed ?: C ; data ?: ( ( this : CreateComponentPublicInstance < Props , {} , {} , {} , MethodOptions , Mixin , Extends , {} , Props , {} , false , {} , {} , IntersectionMixin < Mixin > & IntersectionMixin < Extends > , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "P" > & EnsureNonVoid < Props > , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "B" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "D" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "C" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "M" > & MethodOptions , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "Defaults" > & {} > ,
vm : CreateComponentPublicInstance < Props , {} , {} , {} , MethodOptions , Mixin , Extends , {} , Props , {} , false , {} , {} , IntersectionMixin < Mixin > & IntersectionMixin < Extends > , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "P" > & EnsureNonVoid < Props > , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "B" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "D" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "C" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "M" > & MethodOptions , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "Defaults" > & {} > ) => D ) ; delimiters ?: [ string , string ] ; directives ?: Record < string , vue . Directive < any , any > > ; emits ?: (E | EE[]) & ThisType<void>
; errorCaptured ?: ErrorCapturedHook < unknown > ; expose ?: string [] ; extends ?: Extends ; filters ?: Record < string , Function > ; inheritAttrs ?: boolean ; inject ?: I | II [] ; methods ?: M ; mixins ?: Mixin [] ; name ?: string ; provide ?: ComponentProvideOptions ; render ?: Function ; renderTracked ?: DebuggerHook ; renderTriggered ?: DebuggerHook ; setup ?: ( ( this : void ,
props : LooseRequired < Props & { [ K in string | number | symbol ] : UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "P" > [ K ] } > ,
ctx : SetupContext < E , S > ) => | void | RawBindings | RenderFunction | Promise < RawBindings > ) ; slots ?: S ; template ?: string | object ; watch ?: ComponentWatchOptions ; activated ? ( ) : void ; beforeCreate ? ( ) : void ; beforeDestroy ? ( ) : void ; beforeMount ? ( ) : void ; beforeUnmount ? ( ) : void ; beforeUpdate ? ( ) : void ; created ? ( ) : void ; deactivated ? ( ) : void ; destroyed ? ( ) : void ; mounted ? ( ) : void ; serverPrefetch ? ( ) : void | Promise < any > ; unmounted ? ( ) : void ; updated ? ( ) : void ; } Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:584 PropertiesOptional
__defaults Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:601 Optional
__differentiator __differentiator ?: keyof D | keyof C | keyof M Optional
__file __file ?: string
Optional
__is Built In __is Built In ?: boolean
Optional
__is Fragment __is Fragment ?: undefined
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:598 Optional
__is Suspense __is Suspense ?: undefined
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:600 Optional
__is Teleport __is Teleport ?: undefined
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:599 Optional
__name __name ?: string
Optional
call call ?: ( ( this : unknown , ... args : unknown [] ) => never )
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:597 Optional
compat Config compat Config ?: CompatConfig
Optional
compiler Options Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:596 Optional
components Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:589 Optional
data data ?: ( ( this : CreateComponentPublicInstance < Props , {} , {} , {} , MethodOptions , Mixin , Extends , {} , Props , {} , false , {} , {} , IntersectionMixin < Mixin > & IntersectionMixin < Extends > , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "P" > & EnsureNonVoid < Props > , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "B" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "D" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "C" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "M" > & MethodOptions , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "Defaults" > & {} > ,
vm : CreateComponentPublicInstance < Props , {} , {} , {} , MethodOptions , Mixin , Extends , {} , Props , {} , false , {} , {} , IntersectionMixin < Mixin > & IntersectionMixin < Extends > , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "P" > & EnsureNonVoid < Props > , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "B" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "D" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "C" > & {} , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "M" > & MethodOptions , UnwrapMixinsType < IntersectionMixin < Mixin > & IntersectionMixin < Extends > , "Defaults" > & {} > ) => D ) Optional
delimiters delimiters ?: [ string , string ]
Optional
directives Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:590 Optional
emits emits ?: (E | EE[]) & ThisType<void>
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:592 Optional
error Captured error Captured ?: ErrorCapturedHook < unknown >
Optional
expose expose ?: string []
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:594 Optional
filters filters ?: Record < string , Function >
Optional
inherit Attrs inherit Attrs ?: boolean
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:591 Optional
name name ?: string
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:586 Optional
render render ?: Function
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:588 Optional
render Tracked render Tracked ?: DebuggerHook
Optional
render Triggered render Triggered ?: DebuggerHook
Optional
setup Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:585 Optional
slots Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:593 Optional
template template ?: string | object
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:587 Optional
watch watch ?: ComponentWatchOptions
MethodsOptional
activated activated ( ) : void Returns void Optional
before Create before Create ( ) : void Returns void Optional
before Destroy before Destroy ( ) : void Returns void Optional
before Mount before Mount ( ) : void Returns void Optional
before Unmount before Unmount ( ) : void Returns void Optional
before Update before Update ( ) : void Returns void Optional
created created ( ) : void Returns void Optional
deactivated deactivated ( ) : void Returns void Optional
destroyed destroyed ( ) : void Returns void Optional
mounted mounted ( ) : void Returns void Optional
server Prefetch server Prefetch ( ) : void | Promise < any > Returns void | Promise < any > Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:595 Optional
unmounted unmounted ( ) : void Returns void Optional
updated updated ( ) : void Returns void
Interface for declaring custom options.
Example