@byteluck-fe/runtime-engine 2.0.31 → 2.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/packages/runtime-engine/src/runtimeEngine.d.ts +3 -5
  2. package/dist/runtime-engine.js +11664 -11339
  3. package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/useAgGrid.d.ts +0 -2
  4. package/dist/src/entry_desktop/controls/rok-subtable/hooks/useImport.d.ts +1 -1
  5. package/dist/src/entry_desktop/main.d.ts +16 -0
  6. package/dist/src/entry_mobile/main.d.ts +13 -0
  7. package/dist/src/hooks/components/formEngineModal/useFormEngineModal.d.ts +1 -0
  8. package/dist/src/hooks/context/useInstanceSchemaChangeContext.d.ts +2 -1
  9. package/dist/src/hooks/controls/selecRelation/tools.d.ts +1 -1
  10. package/dist/src/hooks/controls/useRokFormEngineModal.d.ts +1 -1
  11. package/dist/src/hooks/form/useChangeLog.d.ts +1 -0
  12. package/dist/src/plugins/engine/CustomVueControlPlugin.d.ts +19 -2
  13. package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +2 -1
  14. package/dist/src/plugins/engine/TitleSettingPlugin.d.ts +3 -3
  15. package/dist/src/plugins/engine/WorkerDataStorePlugin.d.ts +1 -1
  16. package/dist/src/services/services.auto.d.ts +106 -27
  17. package/dist/src/utils/core/cacheRequest.d.ts +3 -1
  18. package/dist/src/utils/core/vueApp.d.ts +5 -3
  19. package/dist/src/utils/tools/asyncInterval.d.ts +1 -1
  20. package/dist/src/utils/tools/getQuerys.d.ts +1 -0
  21. package/dist/src/utils/tools/globalModules.d.ts +1 -39
  22. package/dist/src/utils/tools/showTips.d.ts +4 -1
  23. package/package.json +1 -1
  24. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useRuntimeQuoteListTableHeight.d.ts +0 -3
  25. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useTableHeight.d.ts +0 -7
@@ -25,9 +25,7 @@ export default function useAgGrid(props: BasicType, emit: any): {
25
25
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
26
26
  params: PropType<ITooltipParams<any, any, any>>;
27
27
  }>>, {}, {}>;
28
- autoHeaderHeight: boolean;
29
28
  suppressKeyboardEvent: suppressKeyboardEvent;
30
- wrapHeaderText: boolean;
31
29
  };
32
30
  noRowsOverlayComponentFramework: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
33
31
  noRowsOverlayComponentParams: null;
@@ -3,7 +3,7 @@ import { ImportParamType, OptionsType, ImportDataType } from '../../../../types/
3
3
  import { CONTROL_TYPE, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
4
4
  import { Engine } from '@byteluck-fe/model-driven-engine';
5
5
 
6
- declare const beforeImportHandlerData: (instance: ControlRuntimeInstance<CONTROL_TYPE.SUBTABLE>, value: any[], context: Engine, callBack?: ((value: any[]) => void) | undefined) => Promise<any>;
6
+ declare const beforeImportHandlerData: (instance: ControlRuntimeInstance<CONTROL_TYPE.SUBTABLE>, value: any[], context: Engine, callBack?: ((value: any[], cover: boolean) => void) | undefined) => Promise<any>;
7
7
  export { beforeImportHandlerData };
8
8
  export default function useModel({ context, instance, setLoading, dataCode, external, onDealData, }: ImportParamType): {
9
9
  asyncTask: Ref<number>;
@@ -1,8 +1,24 @@
1
1
  import { default as xss } from 'xss';
2
+ import { Engine } from '@byteluck-fe/model-driven-engine';
3
+ import { default as Mitt } from '../utils/core/tinyMitt';
2
4
 
3
5
  declare module '@vue/runtime-core' {
4
6
  interface ComponentCustomProperties {
5
7
  $xss: typeof xss;
8
+ $dataFieldCache: any;
9
+ engines: {
10
+ [key: string]: Engine;
11
+ };
12
+ eventEmittesMap: {
13
+ [key: string]: Mitt;
14
+ };
15
+ globalModules: any;
16
+ listViewImportRunningTasksnew: Set<number>;
17
+ listViewImportRunningHandlers: Map<number, Promise<any>>;
18
+ listViewImportTaskId: number;
19
+ formApplyRenderDataCache: {
20
+ [key: string]: any;
21
+ };
6
22
  }
7
23
  }
8
24
  export declare function bootstrap(): Promise<void>;
@@ -1,7 +1,20 @@
1
1
  import { default as xss } from 'xss';
2
+ import { Engine } from '@byteluck-fe/model-driven-engine';
3
+ import { default as Mitt } from '../utils/core/tinyMitt';
2
4
 
3
5
  declare module '@vue/runtime-core' {
4
6
  interface ComponentCustomProperties {
5
7
  $xss: typeof xss;
8
+ $dataFieldCache: any;
9
+ engines: {
10
+ [key: string]: Engine;
11
+ };
12
+ eventEmittesMap: {
13
+ [key: string]: Mitt;
14
+ };
15
+ globalModules: any;
16
+ formApplyRenderDataCache: {
17
+ [key: string]: any;
18
+ };
6
19
  }
7
20
  }
@@ -29,6 +29,7 @@ export declare function useFormEngineModal(props: FormEngineModalProps): {
29
29
  dataCode?: string | undefined;
30
30
  formType: string;
31
31
  };
32
+ isFull: Ref<boolean>;
32
33
  loading: Ref<boolean>;
33
34
  onEngineInit: (engine: Engine) => Promise<void>;
34
35
  hasPermission: Ref<boolean>;
@@ -1,7 +1,8 @@
1
+ import { default as Mitt } from '../../utils/core/tinyMitt';
1
2
  import { RuntimeControl } from '@byteluck-fe/model-driven-core-all';
2
3
  import { Engine, SchemaEventPayload } from '@byteluck-fe/model-driven-engine';
3
4
  import { ShallowRef } from 'vue';
4
5
 
5
- export declare function initInstanceSchemaChangeContext(engine: Engine): any;
6
+ export declare function initInstanceSchemaChangeContext(engine: Engine): Mitt;
6
7
  export declare function useInstanceSchemaChangeProps<T extends RuntimeControl>(instance: T, rowIndex?: number): ShallowRef<T['props']>;
7
8
  export declare function useInstanceSchemaChangePropsCallBack<T extends RuntimeControl>(callBack: (props: SchemaEventPayload) => void, instance: T, rowIndex?: number): void;
@@ -1,4 +1,4 @@
1
- export declare function getNoCacheListTableSchema(appId: string, formKey: string): Promise<typing.ApplyPageBo | undefined>;
1
+ export declare function getNoCacheListTableSchema(appId: string, formKey: string): Promise<typing.ApplyPageBo_1 | undefined>;
2
2
  export declare function getModel(result: any): any;
3
3
  export declare function getOperationSchema(model: any): any;
4
4
  export declare function getBindProcessInstanceId(result: typing.PageDataDetailBo): string | undefined;
@@ -1,5 +1,5 @@
1
- import { Ref, ComputedRef } from 'vue';
2
1
  import { Engine } from '@byteluck-fe/model-driven-engine';
2
+ import { Ref, ComputedRef } from 'vue';
3
3
 
4
4
  export declare function useRokFormEngineModal(engine: Engine | undefined, onClickError?: (caption: string) => void): {
5
5
  visible: Ref<boolean>;
@@ -25,6 +25,7 @@ export declare function useChangeLog(params: {
25
25
  }[] | undefined;
26
26
  operation_action_type?: "MANUAL" | "SERVICE" | undefined;
27
27
  operation_time?: string | undefined;
28
+ operation_timestamp?: number | undefined;
28
29
  operation_type?: "DELETE" | "UPDATE" | "INSERT" | undefined;
29
30
  operator?: {
30
31
  all_dept_id_list?: string[] | undefined;
@@ -11,15 +11,32 @@ export declare type CustomConfig = {
11
11
  name: string;
12
12
  }[];
13
13
  };
14
+ export declare type CustomConfigMap = {
15
+ custom: CustomConfig;
16
+ rel_form_keys: string[];
17
+ style: {
18
+ compiled: string;
19
+ source: string;
20
+ type: string;
21
+ };
22
+ };
14
23
  export declare class CustomVueControlPlugin implements Plugin {
15
24
  pluginName: string;
16
25
  private engine;
17
26
  private config;
18
27
  private service;
19
28
  private byteluckVuePages;
20
- private customViteVue;
21
- constructor(config: CustomConfig, customVue: any);
29
+ private byteluckCustomVuePages;
30
+ private vuePagesConfig;
31
+ constructor(params: {
32
+ config: CustomConfig;
33
+ byteluckCustomVuePages: any;
34
+ vuePagesConfig: {
35
+ [key: string]: CustomConfigMap;
36
+ };
37
+ });
22
38
  apply(engine: Engine): void;
23
39
  private loadDependencyComponent;
40
+ private loadDeepComponent;
24
41
  private vueComRegister;
25
42
  }
@@ -84,7 +84,8 @@ export declare enum RuleType {
84
84
  custom = "custom",
85
85
  form = "form",
86
86
  system = "system",
87
- fx = "fx"
87
+ fx = "fx",
88
+ page = "page"
88
89
  }
89
90
  export declare enum OpenMode {
90
91
  newTab = "newTab",
@@ -25,19 +25,19 @@ export declare class TitleSettingPlugin extends ExpressionBasePlugin {
25
25
  pluginName: string;
26
26
  private nonDatasourceDependencyGraph;
27
27
  private tenantTitle;
28
+ private pageStatus;
29
+ private isCustomSetting;
28
30
  constructor(options: {
29
31
  config: TitleSettingProps[];
30
32
  store: any;
31
33
  });
32
34
  apply(engine: Engine): void;
35
+ private initTitle;
33
36
  private getSettingStatus;
34
37
  private isTitleSetting;
35
38
  private getPageTitle;
36
39
  private getTitleOfDefault;
37
40
  private getTitleOfI18n;
38
- private checkIsMultipleTabsEmpty;
39
41
  private parserFXConfig;
40
- private setWindowTitleToPane;
41
- private showWindowTitle;
42
42
  }
43
43
  export {};
@@ -19,7 +19,7 @@ export declare class WorkerDataStorePlugin implements Plugin {
19
19
  onDataChanagedListener(): void;
20
20
  onSchemaChangeListener(): void;
21
21
  onEngineMounted(): void;
22
- subtableEngineMountedInit(isFillDefaultRows?: boolean, initTableRules?: boolean): void;
22
+ subtableEngineMountedInit(isFillDefaultRows?: boolean, initTableRules?: boolean): Promise<void>;
23
23
  submitDataListener(): void;
24
24
  sortDataListener(): Promise<void>;
25
25
  }
@@ -39,7 +39,7 @@ export default class {
39
39
  query?: {
40
40
  'sappId'?: string;
41
41
  };
42
- }, options?: any): Promise<typing.PlainResult$AppBasicInfoBo$>;
42
+ }, options?: any): Promise<typing.PlainResult$AppBasicInfoBo$_1>;
43
43
  /**
44
44
  * 获取导航菜单及应用菜单信息
45
45
  * @method
@@ -57,7 +57,7 @@ export default class {
57
57
  */
58
58
  GetAllAppNavGroupTreeAppPrivateV1ApiAppsPOST(params: {
59
59
  payload?: typing.SappQuery;
60
- }, options?: any): Promise<typing.PlainResult$List$GroupListDto$$>;
60
+ }, options?: any): Promise<typing.PlainResult$List$GroupListDto$$_2>;
61
61
  /**
62
62
  * 轻应用菜单
63
63
  * @method
@@ -77,7 +77,7 @@ export default class {
77
77
  */
78
78
  GetSappNavGroupTreeByQueryAppPrivateV1ApiAppsPOST(params: {
79
79
  payload?: typing.SappTreeQuery;
80
- }, options?: any): Promise<typing.PlainResult$List$GroupListDto$$>;
80
+ }, options?: any): Promise<typing.PlainResult$List$GroupListDto$$_1>;
81
81
  /**
82
82
  * 菜单、导航搜索
83
83
  * @method
@@ -259,7 +259,7 @@ export default class {
259
259
  * 获取模型和子模型的字段信息
260
260
  * @method
261
261
  * @name #GetModelAndSubModelFieldsBizModelPrivateV1ApiAppsGET
262
- * @param {string} code - code
262
+ * @param {string} code - 编码
263
263
  */
264
264
  GetModelAndSubModelFieldsBizModelPrivateV1ApiAppsGET(params: {
265
265
  query?: {
@@ -271,7 +271,7 @@ export default class {
271
271
  * @method
272
272
  * @name #GetModelFieldsBizModelPrivateV1ApiAppsPOST
273
273
  * @param {string} appId - app_id
274
- * @param {string} code - code
274
+ * @param {string} code - 编码
275
275
  */
276
276
  GetModelFieldsBizModelPrivateV1ApiAppsPOST(params: {
277
277
  query?: {
@@ -306,7 +306,7 @@ export default class {
306
306
  * @method
307
307
  * @name #GetRelationModelsBizModelPrivateV1ApiAppsPOST
308
308
  * @param {string} appId - app_id
309
- * @param {string} code - code
309
+ * @param {string} code - 编码
310
310
  */
311
311
  GetRelationModelsBizModelPrivateV1ApiAppsPOST(params: {
312
312
  query?: {
@@ -401,7 +401,7 @@ export default class {
401
401
  */
402
402
  ListDatasourceCustomPrivateV1ApiAppsGET(params?: {}, options?: any): Promise<typing.PlainResult$List$DatasourceInfoDto$$>;
403
403
  /**
404
- * 数据源列表
404
+ * 数据源test
405
405
  * @method
406
406
  * @name #TestConnectDatasourceCustomPrivateV1ApiAppsPOST
407
407
  * @param {} checkConnect - checkConnect
@@ -810,6 +810,49 @@ export default class {
810
810
  * @name #ListTemplateApproveDesignPrivateV1ApiAppsGET
811
811
  */
812
812
  ListTemplateApproveDesignPrivateV1ApiAppsGET(params?: {}, options?: any): Promise<typing.PlainResult$ApproveTemplateBo对象$>;
813
+ /**
814
+ * redirectPage
815
+ * @method
816
+ * @name #GetTokenDetuoPrivateV1ApiAppsGET
817
+ */
818
+ GetTokenDetuoPrivateV1ApiAppsGET(params?: {}, options?: any): Promise<typing.PlainResult$string$>;
819
+ /**
820
+ * redirectPage
821
+ * @method
822
+ * @name #LoginDetuoPrivateV1ApiAppsGET
823
+ * @param {string} redirectUrl - redirectUrl
824
+ */
825
+ LoginDetuoPrivateV1ApiAppsGET(params: {
826
+ query?: {
827
+ 'redirectUrl'?: string;
828
+ };
829
+ }, options?: any): Promise<{}>;
830
+ /**
831
+ * 德拓文件上传
832
+ * @method
833
+ * @name #UploadDetuoFileDetuoPrivateV1ApiAppsPOST
834
+ * @param {string} appId - app_id
835
+ * @param {boolean} deletable - deletable
836
+ * @param {string} elementId - element_id
837
+ * @param {array} file - file
838
+ * @param {string} formKey - form_key
839
+ * @param {string} modelId - model_id
840
+ * @param {string} modelName - model_name
841
+ * @param {string} processKey - process_key
842
+ * @param {string} processName - process_name
843
+ */
844
+ UploadDetuoFileDetuoPrivateV1ApiAppsPOST(params: {
845
+ query?: {
846
+ 'appId'?: string;
847
+ 'deletable'?: boolean;
848
+ 'elementId'?: string;
849
+ 'formKey'?: string;
850
+ 'modelId'?: string;
851
+ 'modelName'?: string;
852
+ 'processKey'?: string;
853
+ 'processName'?: string;
854
+ };
855
+ }, options?: any): Promise<typing.PlainResult>;
813
856
  /**
814
857
  * 签署状态
815
858
  * @method
@@ -859,7 +902,7 @@ export default class {
859
902
  * 删除环境变量
860
903
  * @method
861
904
  * @name #GetOneEnvVariablePrivateV1ApiAppsGET
862
- * @param {string} code - code
905
+ * @param {string} code - 编码
863
906
  */
864
907
  GetOneEnvVariablePrivateV1ApiAppsGET(params: {
865
908
  query?: {
@@ -1145,6 +1188,13 @@ export default class {
1145
1188
  'redirectUrl'?: string;
1146
1189
  };
1147
1190
  }, options?: any): Promise<{}>;
1191
+ /**
1192
+ * 发票识别
1193
+ * @method
1194
+ * @name #ParseInvoiceInvoicePrivateV1ApiAppsPOST
1195
+ * @param {file} file - file
1196
+ */
1197
+ ParseInvoiceInvoicePrivateV1ApiAppsPOST(params: {}, options?: any): Promise<typing.PlainResult$Result$>;
1148
1198
  /**
1149
1199
  * 人脸核身结果
1150
1200
  * @method
@@ -1169,6 +1219,17 @@ export default class {
1169
1219
  'redirectUrl'?: string;
1170
1220
  };
1171
1221
  }, options?: any): Promise<{}>;
1222
+ /**
1223
+ * delDynamicLanguage
1224
+ * @method
1225
+ * @name #DelDynamicLanguageLanguagePrivateV1ApiAppsPOST
1226
+ * @param {string} appId - app_id
1227
+ */
1228
+ DelDynamicLanguageLanguagePrivateV1ApiAppsPOST(params: {
1229
+ query?: {
1230
+ 'appId'?: string;
1231
+ };
1232
+ }, options?: any): Promise<typing.PlainResult$List$GroupListDto$$>;
1172
1233
  /**
1173
1234
  * 下载模版多语言模板
1174
1235
  * @method
@@ -1182,20 +1243,20 @@ export default class {
1182
1243
  'langName'?: string;
1183
1244
  };
1184
1245
  }, options?: any): Promise<{}>;
1246
+ /**
1247
+ * 获取语言列表
1248
+ * @method
1249
+ * @name #GetSelectLangLanguagePrivateV1ApiAppsGET
1250
+ */
1251
+ GetSelectLangLanguagePrivateV1ApiAppsGET(params?: {}, options?: any): Promise<typing.ListResult$LangSelectBo$>;
1185
1252
  /**
1186
1253
  * 获取语言列表
1187
1254
  * @method
1188
1255
  * @name #LisAllLangBoLanguagePrivateV1ApiAppsPOST
1189
- * @param {boolean} isActive - is_active
1190
- * @param {string} langCode - lang_code
1191
- * @param {string} langName - lang_name
1256
+ * @param {} listLangReqBo - listLangReqBo
1192
1257
  */
1193
1258
  LisAllLangBoLanguagePrivateV1ApiAppsPOST(params: {
1194
- query?: {
1195
- 'isActive'?: boolean;
1196
- 'langCode'?: string;
1197
- 'langName'?: string;
1198
- };
1259
+ payload?: typing.ListLangReqBo;
1199
1260
  }, options?: any): Promise<typing.ListResult$LangBo$>;
1200
1261
  /**
1201
1262
  * 获取语言种类
@@ -1216,12 +1277,10 @@ export default class {
1216
1277
  * 设置默认语言
1217
1278
  * @method
1218
1279
  * @name #SetDefaultLangLanguagePrivateV1ApiAppsPOST
1219
- * @param {string} langId - langId
1280
+ * @param {} langReqIdBo - langReqIdBo
1220
1281
  */
1221
1282
  SetDefaultLangLanguagePrivateV1ApiAppsPOST(params: {
1222
- query?: {
1223
- 'langId'?: string;
1224
- };
1283
+ payload?: typing.LangReqIdBo;
1225
1284
  }, options?: any): Promise<typing.PlainResult$boolean$>;
1226
1285
  /**
1227
1286
  * 设置语言种类
@@ -1233,7 +1292,7 @@ export default class {
1233
1292
  query?: {
1234
1293
  'localLanguage'?: string;
1235
1294
  };
1236
- }, options?: any): Promise<{}>;
1295
+ }, options?: any): Promise<typing.PlainResult$boolean$>;
1237
1296
  /**
1238
1297
  * 复制默认文件副本
1239
1298
  * @method
@@ -1338,7 +1397,7 @@ export default class {
1338
1397
  * @param {} submitFormRequest - submitFormRequest
1339
1398
  */
1340
1399
  ApplySubmitPagePrivateV1ApiAppsPOST(params: {
1341
- payload?: typing.SubmitFormDto_9;
1400
+ payload?: typing.SubmitFormDto_1;
1342
1401
  }, options?: any): Promise<typing.PlainResult$string$>;
1343
1402
  /**
1344
1403
  * 传入:非第一次表单提交数据(JSON格式)
@@ -1367,6 +1426,15 @@ export default class {
1367
1426
  BatchApplyRenderPagePrivateV1ApiAppsPOST(params: {
1368
1427
  payload?: Array<typing.ApplyRenderDto>;
1369
1428
  }, options?: any): Promise<typing.PlainResult$MapObject$>;
1429
+ /**
1430
+ * 传入:申请表单渲染渲染请求对象(JSON格式)
1431
+ * @method
1432
+ * @name #ApplyRenderChumaPagePrivateV1ApiAppsPOST
1433
+ * @param {} renderRequest - renderRequest
1434
+ */
1435
+ ApplyRenderChumaPagePrivateV1ApiAppsPOST(params: {
1436
+ payload?: typing.ApplyRenderDto;
1437
+ }, options?: any): Promise<typing.PlainResult$ApplyPageBo$_1>;
1370
1438
  /**
1371
1439
  * 传入:数据模型编码和数据UID集合
1372
1440
  * @method
@@ -1501,6 +1569,17 @@ export default class {
1501
1569
  GetCustomCodePagePrivateV1ApiAppsPOST(params: {
1502
1570
  payload?: typing.LoadCustomCodeReq;
1503
1571
  }, options?: any): Promise<typing.PlainResult$MapObject$>;
1572
+ /**
1573
+ * 根据流程key获取流程图
1574
+ * @method
1575
+ * @name #GetMapByProcessKeyPagePrivateV1ApiAppsGET
1576
+ * @param {string} processKey - processKey
1577
+ */
1578
+ GetMapByProcessKeyPagePrivateV1ApiAppsGET(params: {
1579
+ query?: {
1580
+ 'processKey'?: string;
1581
+ };
1582
+ }, options?: any): Promise<typing.PlainResult$MapObject$>;
1504
1583
  /**
1505
1584
  * 获取下个节点的审批人范围
1506
1585
  * @method
@@ -1596,7 +1675,7 @@ export default class {
1596
1675
  */
1597
1676
  ProcessDataDisplayPagePrivateV1ApiAppsPOST(params: {
1598
1677
  payload?: typing.ApproveRenderDto;
1599
- }, options?: any): Promise<typing.PlainResult$PageDataDisplayBo$>;
1678
+ }, options?: any): Promise<typing.PlainResult$PageDataDisplayBo$_1>;
1600
1679
  /**
1601
1680
  * 传入:模型编码、主键值、流程key
1602
1681
  * @method
@@ -1726,7 +1805,7 @@ export default class {
1726
1805
  * @param {} exportRequest - exportRequest
1727
1806
  */
1728
1807
  ExportWordPageOprPrivateV1ApiAppsPOST(params: {
1729
- payload?: typing.DataExportDto$List$PageListDataQuery$$_1;
1808
+ payload?: typing.DataExportDto$List$PageListDataQuery$$;
1730
1809
  }, options?: any): Promise<typing.PlainResult$boolean$>;
1731
1810
  /**
1732
1811
  * 获取视图配置
@@ -1941,7 +2020,7 @@ export default class {
1941
2020
  * 前缀删除
1942
2021
  * @method
1943
2022
  * @name #DelPrefixKeyTestPrivateV1ApiAppsGET
1944
- * @param {string} key - key
2023
+ * @param {string} key - 编码
1945
2024
  */
1946
2025
  DelPrefixKeyTestPrivateV1ApiAppsGET(params: {
1947
2026
  query?: {
@@ -1952,7 +2031,7 @@ export default class {
1952
2031
  * 获取
1953
2032
  * @method
1954
2033
  * @name #GetKeyTestPrivateV1ApiAppsGET
1955
- * @param {string} key - key
2034
+ * @param {string} key - 编码
1956
2035
  */
1957
2036
  GetKeyTestPrivateV1ApiAppsGET(params: {
1958
2037
  query?: {
@@ -1963,7 +2042,7 @@ export default class {
1963
2042
  * 前缀获取
1964
2043
  * @method
1965
2044
  * @name #GetPrefixKeyTestPrivateV1ApiAppsGET
1966
- * @param {string} key - key
2045
+ * @param {string} key - 编码
1967
2046
  */
1968
2047
  GetPrefixKeyTestPrivateV1ApiAppsGET(params: {
1969
2048
  query?: {
@@ -1,10 +1,12 @@
1
1
  import { default as ServiceAuto } from '../../services/services.auto';
2
+ import { Engine } from '@byteluck-fe/model-driven-engine';
2
3
 
3
4
  export declare class CacheRequest {
4
5
  private cache;
5
6
  private cacheResult;
7
+ private engine;
6
8
  private readonly service;
7
- constructor(requestThis: ServiceAuto);
9
+ constructor(requestThis: ServiceAuto, engine: Engine);
8
10
  setCache(value: boolean): void;
9
11
  request<T extends (payload: any) => Promise<any>>(request: T, params: Parameters<T>[0]['payload']): ReturnType<T>;
10
12
  request<T extends (payload: any) => Promise<any>, R>(request: T, params: Parameters<T>[0]['payload'], callback: (response: ReturnType<T> extends Promise<infer U> ? U : any) => R): Promise<R extends void ? ReturnType<T> : R>;
@@ -1,6 +1,8 @@
1
- export declare let _vueApp: any;
2
- export declare const setVueApp: (app: any) => void;
1
+ import { App } from 'vue';
2
+
3
+ export declare let _vueApp: App<Element>;
4
+ export declare const setVueApp: (app: App<Element>) => void;
3
5
  declare const _default: {
4
- install(app: any): void;
6
+ install(app: App<Element>): void;
5
7
  };
6
8
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare type handlerType = (...args: any[]) => Promise<any>;
2
2
  export declare function delay(ms: number): Promise<unknown>;
3
3
  export declare function clearAsyncInterval(intervalId?: number): Promise<void>;
4
- export declare function setAsyncInterval(handler: handlerType, interval?: number): any;
4
+ export declare function setAsyncInterval(handler: handlerType, interval?: number): number;
5
5
  export default setAsyncInterval;
@@ -0,0 +1 @@
1
+ export declare const getQuerys: () => any;
@@ -1,39 +1 @@
1
- import { default as moment } from 'moment';
2
- import { default as lodash } from 'lodash';
3
- import { default as decimal } from 'decimal.js';
4
- import { default as dayjs } from 'dayjs';
5
- import { AxiosStatic } from 'axios';
6
- import * as ModelDrivenCoreAll from '@byteluck-fe/model-driven-core-all';
7
- import * as ModelDrivenEngine from '@byteluck-fe/model-driven-engine';
8
- import * as GlobalShared from '@byteluck-fe/global-shared';
9
- import * as CustomControlSdkMain from '@byteluck-fe/custom-control-sdk/main';
10
- import * as CustomControlSdkMainRuntime from '@byteluck-fe/custom-control-sdk/runtime';
11
- import * as i18n from '@byteluck-fe/locale-message';
12
- import * as vue from 'vue';
13
- import * as vant from 'vant';
14
- import * as Antd from 'ant-design-vue';
15
- import * as ModelDrivenShared from '@byteluck-fe/model-driven-shared';
16
- export declare function globalModules(isPc: boolean): {
17
- vue: typeof vue;
18
- '@byteluck-fe/model-driven-core-all': typeof ModelDrivenCoreAll;
19
- '@byteluck/model-driven-core-all': typeof ModelDrivenCoreAll;
20
- '@byteluck-fe/model-driven-engine': typeof ModelDrivenEngine;
21
- '@byteluck/model-driven-engine': typeof ModelDrivenEngine;
22
- moment: typeof moment;
23
- lodash: lodash.LoDashStatic;
24
- axios: AxiosStatic;
25
- decimal: typeof decimal;
26
- dayjs: typeof dayjs;
27
- '@byteluck-fe/custom-control-sdk/main': typeof CustomControlSdkMain;
28
- '@byteluck-fe/custom-control-sdk/runtime': typeof CustomControlSdkMainRuntime;
29
- '@byteluck-fe/global-shared': typeof GlobalShared;
30
- '@byteluck/global-shared': typeof GlobalShared;
31
- '@byteluck-fe/locale-message': typeof i18n;
32
- '@byteluck-fe/model-driven-shared': typeof ModelDrivenShared;
33
- } & ({
34
- 'ant-design-vue': typeof Antd;
35
- vant: {};
36
- } | {
37
- 'ant-design-vue': {};
38
- vant: typeof vant;
39
- });
1
+ export declare function globalModules(): any;
@@ -1 +1,4 @@
1
- export declare function showTips(type: 'success' | 'fail' | 'warning', message: string, onClose?: Function, duration?: number): void;
1
+ import { ToastType } from 'vant';
2
+ import { NoticeType } from 'ant-design-vue/lib/message';
3
+
4
+ export declare function showTips(type: ToastType | NoticeType, message: string, onClose?: Function, duration?: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "2.0.31",
3
+ "version": "2.0.33",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",
@@ -1,3 +0,0 @@
1
- export default function useRuntimeQuoteListTableHeight(tableBody: any, props: any): {
2
- initRuntimeQuoteListTableMaxHeight: () => void;
3
- };
@@ -1,7 +0,0 @@
1
- import { Ref } from 'vue';
2
- export default function useTableHeight(tableBody: any, props: any): {
3
- tableWarpHeight: Ref<number>;
4
- tableContainerHeightStyle: Ref<string>;
5
- setTableContainerHeight: () => void;
6
- initTableHeight: () => void;
7
- };