/** * 页面帮助类 */ declare class PageService { /** * 设置列宽 */ static setColumnWidth: (route: string, tableName: string, fieldName: string, width: number) => void; /** * 获取列宽 */ static getColumnWidth: (route: string, table: string, field: any) => any; /** * 设置侧边栏宽度 */ static setSidebarWidth: (width: number) => void; /** * 获取侧边栏宽度 */ static getSidebarWidth: () => any; /** * 根据key设置多语言标题 */ static setI18nTitle: (key: string) => void; /** * 设置标题 */ static setTitle: (title?: string, env?: string) => void; /** * 获取抽屉宽度,得到的结果是相对于整个页面的宽度 */ static getDrawerWidth: (width: number) => "90%" | "80%" | "70%" | "60%" | "50%"; /** * 把字符串转换成实际类型。场景1: query字符串转换 */ static convert: (value: string, type: string) => string | number; } export default PageService;