Interface ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, I, II, S> interface ComponentOptionsBase < Props , RawBindings , D , C extends ComputedOptions , M extends MethodOptions , Mixin extends ComponentOptionsMixin , Extends extends ComponentOptionsMixin , E extends EmitsOptions , EE extends string , Defaults , I extends ComponentInjectOptions , II extends string , S extends SlotsType > { __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 , 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 ; }
Hierarchy-Diagram
Legend
interface
public property
public method
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:588 Properties Optional __defaults Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:605 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:602 Optional __is Suspense __is Suspense ?: undefined
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:604 Optional __is Teleport __is Teleport ?: undefined
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:603 Optional __name __name ?: string
Optional call call ?: ( ( this : unknown , ... args : unknown [] ) => never )
Type declaration ( this : unknown , ... args : unknown [] ) : never Parameters this : unknown Rest ... args : unknown [] Returns never Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:601 Optional compiler Options Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:600 Optional components Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:593 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 ) Type declaration ( 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 Parameters 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" > & {} > Returns D Optional delimiters delimiters ?: [ string , string ]
Optional directives Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:594 Optional emits emits ?: (E | EE[]) & ThisType<void>
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:596 Optional expose expose ?: string []
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:598 Optional inherit Attrs inherit Attrs ?: boolean
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:595 Optional name name ?: string
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:590 Optional render Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:592 Optional setup Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:589 Optional slots Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:597 Optional template template ?: string | object
Defined in node_modules/@vue/runtime-core/dist/runtime-core.d.ts:591 Methods Optional 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:599 Optional unmounted unmounted ( ) : void Returns void Optional updated updated ( ) : void Returns void
Interface for declaring custom options.
Example