- defineComponent<Props, E, EE, S>(setup, options?): ((props) => any)
Type Parameters
Props extends Record<string, any>
EE extends string = string
S extends SlotsType<Record<string, any>> = {}
Parameters
Optional
options: Pick<ComponentOptions<{}, any, any, any, any, any, any, any, any>, "name" | "inheritAttrs"> & {
emits?: E | EE[];
props?: (keyof Props)[];
slots?: S;
}
Returns ((props) => any)
- (props): any
Parameters
props: Props & EmitsToProps<E>
Returns any
- defineComponent<Props, E, EE, S>(setup, options?): ((props) => any)
Type Parameters
Props extends Record<string, any>
EE extends string = string
S extends SlotsType<Record<string, any>> = {}
Returns ((props) => any)
- (props): any
Parameters
props: Props & EmitsToProps<E>
Returns any
- 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>
Type Parameters
Props = {}
RawBindings = {}
D = {}
EE extends string = string
S extends SlotsType<Record<string, any>> = {}
II extends string = string
- 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>
Type Parameters
PropNames extends string
RawBindings
D
EE extends string = string
S extends SlotsType<Record<string, any>> = {}
II extends string = string
Props = Readonly<{
[key in string]?: any
}>
- 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>
Type Parameters
RawBindings
D
EE extends string = string
S extends SlotsType<Record<string, any>> = {}
II extends string = string