tdesign-vue-next
Version:
TDesign Component for vue-next
10 lines (9 loc) • 356 B
TypeScript
import { ComponentPublicInstance } from 'vue';
export type EmitEventName = {
event: string;
method: string;
} | string;
export declare function getPropsApiByEvent(eventName: string): string;
export declare function emitEvent<T extends any[]>(vm: ComponentPublicInstance & {
$props: Record<string, any>;
}, eventName: string, ...args: T): void;