xframelib
Version:
The accumulated front-end development foundation library originates from projects and serves projects.
45 lines (44 loc) • 1.03 kB
TypeScript
import { RouteMeta, RouteRecordName, RouteRecordRedirectOption } from 'vue-router';
export interface Route {
name: string;
path: string;
redirect?: RouteRecordRedirectOption | undefined;
component?: any;
children?: Route[];
meta?: RouteMeta;
props?: boolean | Record<string, any> | ((to: any) => Record<string, any>);
/**
* 其他扩展的Key属性
*/
[props: string]: any;
}
export interface RouteData {
title?: string;
fullPath?: string;
path?: string;
icon?: string;
keepAlive?: boolean;
name: RouteRecordName | null | undefined;
/**
* 其他扩展的Key属性
*/
[props: string]: any;
}
/**
* 定义右键菜单
*/
export interface IContextMenuItem {
id?: string;
label?: string;
icon?: string;
tag?: any;
children?: Array<IContextMenuItem>;
}
export interface ViewportOffsetResult {
left: number;
top: number;
right: number;
bottom: number;
rightIncludeBody: number;
bottomIncludeBody: number;
}