mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增编辑阶段 mock 接口轮询请求功能
This commit is contained in:
+2
-10
@@ -1,6 +1,6 @@
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { HistoryActionTypeEnum } from '@/store/modules/chartHistoryStore/chartHistoryStore.d'
|
||||
import { RequestHttpEnum } from '@/enums/httpEnum'
|
||||
import { RequestHttpEnum, RequestDataTypeEnum } from '@/enums/httpEnum'
|
||||
import type {
|
||||
ChartColorsNameType,
|
||||
GlobalThemeJsonType,
|
||||
@@ -122,20 +122,12 @@ export enum ChartEditStoreEnum {
|
||||
COMPONENT_LIST = 'componentList',
|
||||
}
|
||||
|
||||
// 数据相关
|
||||
export enum RequestDataTypeEnum {
|
||||
// 静态数据
|
||||
STATIC = 0,
|
||||
// 请求数据
|
||||
AJAX = 1,
|
||||
}
|
||||
|
||||
// 全局的图表请求配置
|
||||
export type RequestGlobalConfigType = {
|
||||
// 请求源地址
|
||||
requestOriginUrl?: string
|
||||
// 轮询时间
|
||||
requestInterval?: number
|
||||
requestInterval: number
|
||||
}
|
||||
// 单个图表请求配置
|
||||
export type RequestConfigType = {
|
||||
|
||||
Reference in New Issue
Block a user