diff --git a/src/datax-screen-config.ts b/src/datax-screen-config.ts index ae29b61..811a4fa 100644 --- a/src/datax-screen-config.ts +++ b/src/datax-screen-config.ts @@ -21,7 +21,7 @@ export interface ScreenDesignTimeConfig { design: { hidden: boolean; locked: boolean; - } + }; // 组件在画布上的布局和样式 style: { left: number; // 组件在画布上的X轴距离 @@ -41,15 +41,21 @@ export interface ScreenDesignTimeConfig { data: any; // 组件数据 dataSource: { variableNames: Array; // 关联的全局变量名称 - type: "static" | "api" | "variable"; + type: "static" | "variable" | "api" | "graphql"; // 数据源配置 config: { value?: any; - url?: string; - method?: "GET" | "POST"; - headers?: Record; - query?: Record; - body?: Record; + api?: { + url?: string; + method?: "GET" | "POST"; + headers?: Record; + query?: Record; + body?: Record; + }; + graphql?: { + query?: string; + variables?: Record; + }; }; cors: boolean; // 服务器代理请求 filterIds: Array;