- defineComponent<Props, E, EE, S>(setup, options?): DefineSetupFnComponent<Props, E, S>
Type Parameters
- Props extends Record<string, any>
- E extends EmitsOptions = {}
- EE extends string = string
- S extends SlotsType<Record<string, any>> = {}
Parameters
- setup: ((props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<RenderFunction>)
Optional
options: Pick<ComponentOptions<{}, any, any, any, any, any, any, any, any>, "name" | "inheritAttrs"> & {
emits?: E | EE[];
props?: (keyof Props)[];
slots?: S;
}
- defineComponent<Props, E, EE, S>(setup, options?): DefineSetupFnComponent<Props, E, S>
Type Parameters
- Props extends Record<string, any>
- E extends EmitsOptions = {}
- EE extends string = string
- S extends SlotsType<Record<string, any>> = {}
Parameters
- setup: ((props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<RenderFunction>)
Optional
options: Pick<ComponentOptions<{}, any, any, any, any, any, any, any, any>, "name" | "inheritAttrs"> & {
emits?: E | EE[];
props?: ComponentObjectPropsOptions<Props>;
slots?: S;
}
- defineComponent<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, S, I, II>(options): DefineComponent<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, PublicProps, ResolveProps<Props, E>, ExtractDefaultPropTypes<Props>, S>
Parameters
- options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S, Props & EmitsToProps<E>>
- defineComponent<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE, S, I, II, Props>(options): DefineComponent<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, PublicProps, ResolveProps<Props, E>, ExtractDefaultPropTypes<Props>, S>
Parameters
- options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S, {
[K in string | number | symbol]: Readonly<{
[key in string]?: any
} & EmitsToProps<E>>[K]
}>
- defineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, S, I, II>(options): DefineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PublicProps, ResolveProps<PropsOptions, E>, ExtractDefaultPropTypes<PropsOptions>, S>
Parameters
- options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S, {
[K in string | number | symbol]: Readonly<{
[K in string | number | symbol]: InferPropType<PropsOptions[K]>
} & {
[K in string | number | symbol]?: InferPropType<PropsOptions[K]>
} & EmitsToProps<E>>[K]
}, ExtractDefaultPropTypes<PropsOptions>>