element-pro-components
Version:
a component library for Vue 3 base on element-plus
38 lines (37 loc) • 945 B
TypeScript
import { Mock } from 'vitest';
import { RouteRecordRaw } from 'vue-router';
export declare function initRouter(list?: RouteRecordRaw[]): {
push: Mock;
};
export declare function NOOP(): null;
export interface DicItem {
value: string;
label: string;
disabled?: boolean;
}
export declare const dicList: DicItem[];
export declare const dictConfigList: {
id: number;
value: {
key: string;
};
}[];
export interface TableItem {
date: string;
name: string;
address: string;
}
export declare const tableData: TableItem[];
export interface SlotItem {
slot?: boolean;
label: string;
children?: SlotItem[];
[key: string]: unknown;
}
export declare const slotList: SlotItem[];
export declare const routes: RouteRecordRaw[];
export interface TreeItem extends DicItem {
children?: TreeItem[];
}
export declare const treeList: TreeItem[];
export declare function doubleWait(): Promise<void>;