goview_vue/src/settings/designSetting.ts

59 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-05-04 01:46:56 +08:00
import { LangEnum, PreviewScaleEnum } from '@/enums/styleEnum'
2022-07-11 09:01:19 +08:00
import { RequestHttpIntervalEnum } from '@/enums/httpEnum'
2022-03-12 18:46:51 +08:00
import designColor from './designColor.json'
// 默认语言
2022-05-04 01:46:56 +08:00
export const lang = LangEnum.ZH
// 水印文字
export const watermarkText = "GoView 低代码平台"
2021-12-10 14:11:49 +08:00
// 主题配置
2021-12-14 20:00:20 +08:00
export const theme = {
2021-12-18 16:36:43 +08:00
// 默认是否开启深色主题
2021-12-14 20:00:20 +08:00
darkTheme: true,
2022-03-12 18:46:51 +08:00
//默认主题色
2021-12-20 13:36:54 +08:00
appTheme: '#51d6a9',
2022-03-12 18:46:51 +08:00
appThemeDetail: null,
}
2021-12-10 14:11:49 +08:00
2022-04-22 10:04:55 +08:00
// 图表初始配置(px)
export const chartInitConfig = {
x: 50,
y: 50,
w: 500,
h: 300
}
2021-12-20 14:29:29 +08:00
// dialog 图标的大小
export const dialogIconSize = '20'
2021-12-18 16:36:43 +08:00
// 侧边栏宽度
2021-12-18 22:05:00 +08:00
export const asideWidth = '270'
2021-12-18 16:36:43 +08:00
2022-01-08 15:00:52 +08:00
// 侧边栏折叠后的宽度,支持全部折叠会覆盖为 0
2022-01-16 15:28:33 +08:00
export const asideCollapsedWidth = 60
2022-01-08 14:27:56 +08:00
2022-01-15 16:07:46 +08:00
// 弹窗是否可以通过点击遮罩关闭
export const maskClosable = false
2021-12-14 20:00:20 +08:00
// 修改边框圆角
2021-12-20 13:36:54 +08:00
export const borderRadius = '6px'
2021-12-15 14:25:28 +08:00
// 轮播间隔
export const carouselInterval = 4000
// 工作台大屏背景图片大小限制5M
export const backgroundImageSize = 5
2022-05-04 01:46:56 +08:00
// 预览展示方式
export const previewScaleType = PreviewScaleEnum.FIT
// 数据请求间隔
2022-07-06 21:48:41 +08:00
export const requestInterval = 30
2022-07-11 09:01:19 +08:00
// 数据请求间隔单位
export const requestIntervalUnit = RequestHttpIntervalEnum.SECOND
// 工作区域历史记录存储最大数量
export const editHistoryMax = 100