Function defineCustomElement
- defineCustomElement<Props, RawBindings>(setup, options?): VueElementConstructor<Props>
Type Parameters
- Props
- RawBindings = object
- defineCustomElement<Props, RawBindings>(setup, options?): VueElementConstructor<Props>
Type Parameters
- Props
- RawBindings = object
- defineCustomElement<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S>(options): VueElementConstructor<Props>
Parameters
- options: ComponentOptionsBase<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II, S> & {
props?: undefined;
} & ThisType<CreateComponentPublicInstance<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Props & EmitsToProps<E>, {}, false, I, S, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Props & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & {
styles?: string[];
}
- defineCustomElement<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S>(options): VueElementConstructor<{
[K in PropNames]: any
}> Parameters
- options: ComponentOptionsBase<{
[K in string | number | symbol]: Readonly<{
[key in string]?: any
} & EmitsToProps<E>>[K]
}, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II, S> & {
props: PropNames[];
} & ThisType<CreateComponentPublicInstance<{
[K in string | number | symbol]: Readonly<{
[key in string]?: any
} & EmitsToProps<E>>[K]
}, RawBindings, D, C, M, Mixin, Extends, E, {
[K in string | number | symbol]: Readonly<{
[key in string]?: any
} & EmitsToProps<E>>[K]
}, {}, false, I, S, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<{
[K in string | number | symbol]: Readonly<{
[key in string]?: any
} & EmitsToProps<E>>[K]
}>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & {
styles?: string[];
}
- defineCustomElement<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II, S>(options): VueElementConstructor<ExtractPropTypes<PropsOptions>>
Parameters
- options: ComponentOptionsBase<{
[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]
}, RawBindings, D, C, M, Mixin, Extends, E, EE, ExtractDefaultPropTypes<PropsOptions>, I, II, S> & {
props: PropsOptions & ThisType<void>;
} & ThisType<CreateComponentPublicInstance<{
[K in string | number | symbol]: Readonly<{
[K in string | number | symbol]: InferPropType<PropsOptions[K]>
} & {
[K in string | number | symbol]?: InferPropType<(...)[(...)]>
} & EmitsToProps<E>>[K]
}, RawBindings, D, C, M, Mixin, Extends, E, {
[K in string | number | symbol]: Readonly<{
[K in string | number | symbol]: InferPropType<PropsOptions[K]>
} & {
[K in string | number | symbol]?: InferPropType<(...)[(...)]>
} & EmitsToProps<E>>[K]
}, ExtractDefaultPropTypes<PropsOptions>, false, I, S, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<{
[K in string | number | symbol]: Readonly<{
[K in (...) | (...) | (...)]: InferPropType<(...)>
} & {
[K in (...) | (...) | (...)]?: (...) | (...)
} & EmitsToProps<E>>[K]
}>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & EnsureNonVoid<ExtractDefaultPropTypes<PropsOptions>>>> & {
styles?: string[];
}
- defineCustomElement<P>(options): VueElementConstructor<ExtractPropTypes<P>>