UNPKG

xframelib

Version:

积累的前端开发基础库,来源于项目和服务于项目。

45 lines (44 loc) 1.03 kB
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; }