export const defaultPageSize = 20 export const storageKey = { i18n: 'cn-i18n', language: 'cn-language', timezone: 'cn-timezone', timezoneOffset: 'cn-timezone-offset', timezoneLocalOffset: 'cn-timezone-local-offset', token: 'cn-token', username: 'cn-username', sysName: 'cn-sys-name', sysLogo: 'cn-sys-logo', tableTitlePrefix: 'cn-table-title', tablePageSizePrefix: 'cn-page-size', leftMenuShrink: 'cn-left-menu-shrink', unsavedChange: 'cn-unsaved-change' } // 统一定义跳转来源 export const fromRoute = { trafficSummary: 'trafficSummary', networkAppPerformance: 'networkAppPerformance', dnsServiceInsights: 'dnsServiceInsights', user: 'user' } /* panel类别和路由之间的映射 */ export const panelTypeAndRouteMapping = { trafficSummary: 1, networkAppPerformance: 2, dnsServiceInsights: 3 } export const position = { tableHeight: { normal: 'calc(100% - 48px)' // 常规高度,特例在下方定义 } } export const chartTableDefaultPageSize = 10 // table类型图表默认每页数据量 export const chartTableTopOptions = [10, 100] // table类型图表的TOP-N选项