package @vue/runtime-dom

Classes

Name Summary

VueElement

Interfaces

Name Summary

TransitionProps

Functions

defineCustomElement(setup)

Parameters
Name Type Description

setup

(props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction

Returns

VueElementConstructor<Props>

Signature
export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): VueElementConstructor<Props>;

defineCustomElement(options)

Parameters
Name Type Description

options

ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE> & { styles?: string[]; }

Returns

VueElementConstructor<Props>

Signature
export declare function defineCustomElement<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
    styles?: string[];
}): VueElementConstructor<Props>;

defineCustomElement(options)

Parameters
Name Type Description

options

ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE> & { styles?: string[]; }

Returns

VueElementConstructor<{ [K in PropNames]: any; }>

Signature
export declare function defineCustomElement<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
    styles?: string[];
}): VueElementConstructor<{
    [K in PropNames]: any;
}>;

defineCustomElement(options)

Parameters
Name Type Description

options

ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE> & { styles?: string[]; }

Returns

VueElementConstructor<ExtractPropTypes<PropsOptions>>

Signature
export declare function defineCustomElement<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
    styles?: string[];
}): VueElementConstructor<ExtractPropTypes<PropsOptions>>;

defineCustomElement(options)

Parameters
Name Type Description

options

{ new (…​args: any[]): ComponentPublicInstance; }

Returns

VueElementConstructor

Signature
export declare function defineCustomElement(options: {
    new (...args: any[]): ComponentPublicInstance;
}): VueElementConstructor;

useCssModule(name)

Parameters
Name Type Description

name

string

Returns

Record<string, string>

Signature
export declare function useCssModule(name?: string): Record<string, string>;

useCssVars(getter)

Runtime helper for SFC’s CSS variable injection feature.

Parameters
Name Type Description

getter

(ctx: any) => Record<string, string>

Returns

void

Signature
export declare function useCssVars(getter: (ctx: any) => Record<string, string>): void;