package @vue/runtime-dom
Functions
defineCustomElement(setup)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
Signature
export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): VueElementConstructor<Props>;
defineCustomElement(options)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
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)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
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)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
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)
Name | Type | Description |
---|---|---|
|
|
|
Returns |
|
Signature
export declare function defineCustomElement(options: {
new (...args: any[]): ComponentPublicInstance;
}): VueElementConstructor;