@vue-start/pro 0.5.67 → 0.5.68

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.
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  /// <reference types="lodash" />
2
2
  import * as vue from 'vue';
3
- import { VNode, ExtractPropTypes, PropType, DefineComponent, ComputedRef, App, UnwrapNestedRefs as UnwrapNestedRefs$1, Ref as Ref$1 } from 'vue';
4
- import * as _vue_reactivity from '@vue/reactivity';
5
- import { UnwrapNestedRefs, Ref, UnwrapRef, ComputedRef as ComputedRef$1 } from '@vue/reactivity';
6
- import { Subject } from 'rxjs';
3
+ import { VNode, ExtractPropTypes, ComputedRef, UnwrapNestedRefs, PropType, App, Ref as Ref$1, UnwrapRef, DefineComponent } from 'vue';
7
4
  import { IRequestActor } from '@vue-start/request';
5
+ import * as _vue_reactivity from '@vue/reactivity';
6
+ import { Ref, UnwrapNestedRefs as UnwrapNestedRefs$1, UnwrapRef as UnwrapRef$1, ComputedRef as ComputedRef$1 } from '@vue/reactivity';
8
7
  import * as _vue_start_store from '@vue-start/store';
9
8
  import { TUpdater } from '@vue-start/store';
10
9
  import * as vue_router from 'vue-router';
11
10
  import { Router, RouteLocationNormalizedLoaded } from 'vue-router';
11
+ import { Subject } from 'rxjs';
12
12
  import * as lodash from 'lodash';
13
13
  import { TTableMergeOpts, TConvert } from '@vue-start/hooks';
14
14
 
@@ -32,6 +32,19 @@ declare type TRender = (opts: {
32
32
  record: any;
33
33
  column?: TColumn;
34
34
  }) => VNode | string | number;
35
+ declare type TSetData = {
36
+ type: string;
37
+ path: string | string[];
38
+ };
39
+ declare type TSetDataMeta = Omit<TSetData, "type"> & {
40
+ type: "meta";
41
+ actorName: string;
42
+ params?: Record<string, any>;
43
+ };
44
+ declare type TSetDataStore = Omit<TSetData, "type"> & {
45
+ type: "store";
46
+ storeName: string;
47
+ };
35
48
  declare type TColumn = {
36
49
  title?: string | VNode;
37
50
  dataIndex?: string | number;
@@ -52,13 +65,28 @@ declare type TColumn = {
52
65
  descRender?: string | TRender;
53
66
  formReadRender?: string | TRender;
54
67
  tableRender?: string | TRender;
68
+ /************ 标记 ************ */
55
69
  search?: boolean;
70
+ /************ 表格列宽度 ************ */
56
71
  width?: number;
57
72
  minWidth?: number;
73
+ /************ column 数据补充 ************ */
74
+ setData?: (TSetDataMeta | TSetDataStore)[];
75
+ paths?: string | string[];
76
+ /************ form extra 数据补充 ************ */
77
+ formExtra?: {
78
+ label?: {
79
+ name: string;
80
+ opts?: {
81
+ showAllPath?: boolean;
82
+ };
83
+ };
84
+ };
58
85
  extra?: {
59
86
  desc?: Record<string, any>;
60
87
  col?: Record<string, any>;
61
88
  } & Record<string, any>;
89
+ children?: TColumns;
62
90
  };
63
91
  declare type TColumns = TColumn[];
64
92
  /**
@@ -192,6 +220,11 @@ declare const getColumnValueType: (column: TColumn) => TValueType;
192
220
  * @param column
193
221
  */
194
222
  declare const getColumnFormItemName: (column: TColumn) => string | number | undefined;
223
+ /**
224
+ * 获取Column的FormItem props
225
+ * @param column
226
+ */
227
+ declare const getColumnFormInputProps: (column: TColumn) => Record<string, any>;
195
228
  /**
196
229
  * 获取column 中对应的render方法
197
230
  * case1:render为方法的时候,直接返回render;
@@ -285,192 +318,6 @@ declare const Wrapper: vue.DefineComponent<{
285
318
  elementConfig: IElementConfig;
286
319
  }>, {}>;
287
320
 
288
- interface IProModuleProvide {
289
- elementMap: TElementMap;
290
- subject$: Subject<TActionEvent>;
291
- sendEvent: (action: TActionEvent) => void;
292
- state: UnwrapNestedRefs<Record<string, any>>;
293
- dispatch: (action: TActionState) => void;
294
- data: Record<string, any>;
295
- requests: IRequestOpts[];
296
- sendRequest: (requestNameOrAction: string, ...params: any[]) => void;
297
- executeExp: (param: TExpression, args: any) => any;
298
- execute: (executeList: TExecuteItem[], args: any[]) => void;
299
- }
300
- declare const useProModule: () => IProModuleProvide;
301
- declare const provideProModule: (ctx: IProModuleProvide) => void;
302
- declare const useModuleEvent: (cb: (action: TActionEvent) => void) => void;
303
- interface IRequestOpts {
304
- actor: IRequestActor;
305
- /**
306
- * 如果设置action,可以使用该值发起请求 住:要保证唯一性
307
- * 设置该字段原因:因为actor中的name不友好,可以理解为一个备选方案
308
- */
309
- action?: string;
310
- stateName?: string;
311
- loadingName?: string;
312
- convertParams?: (...params: any[]) => Record<string, any>;
313
- convertParamsEx?: TExpression;
314
- convertData?: (actor: IRequestActor) => Record<string, any>;
315
- convertDataEx?: TExpression;
316
- onSuccess?: (actor?: IRequestActor) => void;
317
- onSuccessEx?: TExecuteItem[];
318
- onFailed?: (actor?: IRequestActor) => void;
319
- onFailedEx?: TExecuteItem[];
320
- }
321
- declare const RequestAction: {
322
- Success: string;
323
- Fail: string;
324
- };
325
- declare const proModuleProps: () => {
326
- /**
327
- * module状态
328
- */
329
- state: {
330
- type: PropType<Record<string, any>>;
331
- };
332
- initState: {
333
- type: PropType<object>;
334
- };
335
- /**
336
- * store names
337
- */
338
- storeKeys: {
339
- type: PropType<string[]>;
340
- };
341
- /**
342
- * meta names
343
- */
344
- metasKeys: {
345
- type: PropType<string[]>;
346
- };
347
- /**
348
- * 组件集
349
- */
350
- elementMap: {
351
- type: PropType<TElementMap>;
352
- };
353
- /**
354
- * 组件描述(树)
355
- */
356
- elementConfigs: {
357
- type: PropType<IElementConfig | IElementConfig[]>;
358
- };
359
- /**
360
- * requests
361
- */
362
- actors: {
363
- type: PropType<IRequestActor<any, any, any>[]>;
364
- };
365
- requests: {
366
- type: PropType<IRequestOpts[]>;
367
- };
368
- };
369
- declare type ProModuleProps = Partial<ExtractPropTypes<ReturnType<typeof proModuleProps>>>;
370
- declare const ProModule: vue.DefineComponent<Partial<ExtractPropTypes<{
371
- /**
372
- * module状态
373
- */
374
- state: {
375
- type: PropType<Record<string, any>>;
376
- };
377
- initState: {
378
- type: PropType<object>;
379
- };
380
- /**
381
- * store names
382
- */
383
- storeKeys: {
384
- type: PropType<string[]>;
385
- };
386
- /**
387
- * meta names
388
- */
389
- metasKeys: {
390
- type: PropType<string[]>;
391
- };
392
- /**
393
- * 组件集
394
- */
395
- elementMap: {
396
- type: PropType<TElementMap>;
397
- };
398
- /**
399
- * 组件描述(树)
400
- */
401
- elementConfigs: {
402
- type: PropType<IElementConfig | IElementConfig[]>;
403
- };
404
- /**
405
- * requests
406
- */
407
- actors: {
408
- type: PropType<IRequestActor<any, any, any>[]>;
409
- };
410
- requests: {
411
- type: PropType<IRequestOpts[]>;
412
- };
413
- }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
414
- /**
415
- * module状态
416
- */
417
- state: {
418
- type: PropType<Record<string, any>>;
419
- };
420
- initState: {
421
- type: PropType<object>;
422
- };
423
- /**
424
- * store names
425
- */
426
- storeKeys: {
427
- type: PropType<string[]>;
428
- };
429
- /**
430
- * meta names
431
- */
432
- metasKeys: {
433
- type: PropType<string[]>;
434
- };
435
- /**
436
- * 组件集
437
- */
438
- elementMap: {
439
- type: PropType<TElementMap>;
440
- };
441
- /**
442
- * 组件描述(树)
443
- */
444
- elementConfigs: {
445
- type: PropType<IElementConfig | IElementConfig[]>;
446
- };
447
- /**
448
- * requests
449
- */
450
- actors: {
451
- type: PropType<IRequestActor<any, any, any>[]>;
452
- };
453
- requests: {
454
- type: PropType<IRequestOpts[]>;
455
- };
456
- }>>>, {}>;
457
-
458
- declare type TConfigData = {
459
- initState?: Record<string, any>;
460
- initExecuteList?: TExecuteItem[];
461
- storeKeys?: string[];
462
- requests?: Omit<IRequestOpts, "actor"> & {
463
- actor: string;
464
- }[];
465
- elementConfigs?: IElementConfig | IElementConfig[];
466
- };
467
- declare const createModule: ({ actors, configData, configDataExtra, Logic, }: {
468
- actors?: IRequestActor<any, any, any>[] | undefined;
469
- configData?: TConfigData | undefined;
470
- configDataExtra?: Record<string, any> | undefined;
471
- Logic?: DefineComponent<{}, {}, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}> | undefined;
472
- }) => DefineComponent<unknown, () => JSX.Element | null, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
473
-
474
321
  declare type TInitialState<T> = T | (() => T);
475
322
  declare type TRegisterStore = {
476
323
  key: string;
@@ -487,36 +334,12 @@ declare const useDispatchStore: <T>() => (key: string, stateOrUpdater: T | TUpda
487
334
  * 返回ref对象
488
335
  */
489
336
  declare const useReadStore: (key: string) => _vue_reactivity.Ref<any>;
490
-
491
- declare const useDoneRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
492
- declare const useFailedRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
493
- declare const useComposeRequestActor: (actors: (IRequestActor | string)[], options: {
494
- onSuccess?: ((actor: IRequestActor) => void) | undefined;
495
- onFailed?: ((actor: IRequestActor) => void) | undefined;
496
- onFinish?: ((actor: IRequestActor) => void) | undefined;
497
- }, cancelWhileUnmount?: boolean) => void;
498
- /******************************* meta *********************************/
499
337
  /**
500
- * 转换请求数据
501
- * @param actor
502
- * @param convertData
503
- * @param convertPath
338
+ * 批量读取全局状态
339
+ * @param storeKeys
340
+ * @returns
504
341
  */
505
- declare const convertResData: (actor: IRequestActor, convertData?: ((res: IRequestActor["res"], actor: IRequestActor) => any) | undefined, convertPath?: (string | number)[]) => any;
506
- declare type TMeta = {
507
- actorName: string;
508
- storeName?: string | ((params?: Record<string, any>) => string);
509
- initParams?: Record<string, any>;
510
- convertPath?: (string | number)[];
511
- convertData?: (data: any, actor: IRequestActor) => any;
512
- };
513
- /**
514
- * 读取meta状态
515
- * @param actorName
516
- * @param params
517
- */
518
- declare const useMeta: <T>(actorName: string, params?: Record<string, any>) => Ref<T | undefined>;
519
- declare const useMetaRegister: (registerMetaMap: IProConfigProvide["registerMetaMap"], registerActorMap: IProConfigProvide["registerActorMap"]) => void;
342
+ declare const useRegisterStores: (storeKeys: string[]) => {};
520
343
 
521
344
  declare type TOpenMenu = (menu: any) => void;
522
345
  declare const RouterMethods: {
@@ -759,6 +582,9 @@ declare const proBasePropsFn: () => {
759
582
  columns: {
760
583
  type: PropType<TColumns>;
761
584
  };
585
+ convertColumnPre: {
586
+ type: PropType<(t: TColumn) => TColumn>;
587
+ };
762
588
  convertColumn: {
763
589
  type: PropType<(t: TColumn) => TColumn>;
764
590
  };
@@ -778,7 +604,6 @@ declare const proBasePropsFn: () => {
778
604
  };
779
605
  declare type ProBaseProps = Partial<ExtractPropTypes<ReturnType<typeof proBasePropsFn>>>;
780
606
  declare const proBaseProps: ProBaseProps;
781
- declare const mergeState: (columns: TColumns, columnState?: Record<string, any>, columnState2?: Record<string, any>) => TColumns;
782
607
  declare type ProDispatchRequestType = (actorName: string, params?: IRequestActor["req"], extra?: IRequestActor["extra"]) => IRequestActor | undefined;
783
608
  declare type TFormExtraMap = {
784
609
  rulePrefixMap?: Record<string, string>;
@@ -807,6 +632,9 @@ interface IProConfigProvide {
807
632
  * 注册的全局Meta
808
633
  */
809
634
  registerMetaMap: Record<string, TMeta>;
635
+ metaState: UnwrapNestedRefs<{
636
+ [key: string]: boolean;
637
+ }>;
810
638
  /**
811
639
  * 发送请求
812
640
  * @param actorName
@@ -1084,10 +912,293 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
1084
912
  */
1085
913
  declare const createProConfig: (config?: ProConfigProps) => (app: App) => void;
1086
914
 
915
+ declare const useDoneRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
916
+ declare const useFailedRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
917
+ declare const useComposeRequestActor: (actors: (IRequestActor | string)[], options: {
918
+ onSuccess?: ((actor: IRequestActor) => void) | undefined;
919
+ onFailed?: ((actor: IRequestActor) => void) | undefined;
920
+ onFinish?: ((actor: IRequestActor) => void) | undefined;
921
+ }, cancelWhileUnmount?: boolean) => void;
922
+ /******************************* meta *********************************/
923
+ /**
924
+ * 转换请求数据
925
+ * @param actor
926
+ * @param convertData
927
+ * @param convertPath
928
+ */
929
+ declare const convertResData: (actor: IRequestActor, convertData?: ((res: IRequestActor["res"], actor: IRequestActor) => any) | undefined, convertPath?: (string | number)[]) => any;
930
+ declare type TMeta = {
931
+ actorName: string;
932
+ storeName: string | ((params?: Record<string, any>) => string);
933
+ initParams?: Record<string, any>;
934
+ convertPath?: (string | number)[];
935
+ convertData?: (data: any, actor: IRequestActor) => any;
936
+ };
937
+ declare const useGetMetaStoreName: () => (actorName: string, params?: Record<string, any>) => string | undefined;
938
+ /**
939
+ * 读取meta加载状态
940
+ */
941
+ declare const useMetaLoading: (actorName: string, params?: Record<string, any>) => ComputedRef<boolean>;
942
+ /**
943
+ * 读取meta状态
944
+ * @param actorName
945
+ * @param params
946
+ */
947
+ declare const useMeta: <T>(actorName: string, params?: Record<string, any>) => Ref<T | undefined>;
948
+ declare type TMetaKey = {
949
+ actorName: string;
950
+ params?: Record<string, any>;
951
+ };
952
+ declare const useRegisterMetas: (metaKeys: TMetaKey[]) => {};
953
+ declare const useMetaRegister: (registerMetaMap: IProConfigProvide["registerMetaMap"], registerActorMap: IProConfigProvide["registerActorMap"], metaState: {
954
+ [key: string]: boolean;
955
+ }) => void;
956
+
957
+ declare const getColumnsOpts: (columns: TColumns) => {
958
+ storeKeys: string[];
959
+ metaKeys: TMetaKey[];
960
+ };
961
+ declare type TSetDataOpts = {
962
+ stores?: Record<string, Ref$1<UnwrapRef<any>>>;
963
+ metas?: Record<string, Ref$1<UnwrapRef<any>>>;
964
+ getMetaStoreName?: (actorName: string, params?: Record<string, any>) => string | undefined;
965
+ };
966
+ declare const setColumnsData: (columns: TColumns, opts: TSetDataOpts) => {
967
+ title?: string | vue.VNode<vue.RendererNode, vue.RendererElement, {
968
+ [key: string]: any;
969
+ }> | undefined;
970
+ dataIndex?: string | number | undefined;
971
+ valueType?: string | undefined;
972
+ formValueType?: string | undefined;
973
+ showProps?: Record<string, any> | undefined;
974
+ formItemProps?: {
975
+ name?: string | undefined;
976
+ label?: string | undefined;
977
+ } | undefined;
978
+ formFieldProps?: Record<string, any> | undefined;
979
+ props?: Record<string, any> | undefined;
980
+ inputProps?: Record<string, any> | undefined;
981
+ render?: TRender | undefined;
982
+ inputRender?: TRender | undefined;
983
+ descRender?: string | TRender | undefined;
984
+ formReadRender?: string | TRender | undefined;
985
+ tableRender?: string | TRender | undefined;
986
+ search?: boolean | undefined;
987
+ width?: number | undefined;
988
+ minWidth?: number | undefined;
989
+ setData?: (TSetDataMeta | TSetDataStore)[] | undefined;
990
+ paths?: string | string[] | undefined;
991
+ formExtra?: {
992
+ label?: {
993
+ name: string;
994
+ opts?: {
995
+ showAllPath?: boolean | undefined;
996
+ } | undefined;
997
+ } | undefined;
998
+ } | undefined;
999
+ extra?: ({
1000
+ desc?: Record<string, any> | undefined;
1001
+ col?: Record<string, any> | undefined;
1002
+ } & Record<string, any>) | undefined;
1003
+ children?: TColumns | undefined;
1004
+ }[];
1005
+ declare const mergeState: (columns: TColumns, columnState?: Record<string, any>, columnState2?: Record<string, any>, opts?: (TSetDataOpts & {
1006
+ convertColumnPre?: ((t: TColumn) => TColumn) | undefined;
1007
+ convertColumn?: ((t: TColumn) => TColumn) | undefined;
1008
+ }) | undefined) => TColumns;
1009
+
1010
+ interface IProModuleProvide {
1011
+ elementMap: TElementMap;
1012
+ subject$: Subject<TActionEvent>;
1013
+ sendEvent: (action: TActionEvent) => void;
1014
+ state: UnwrapNestedRefs$1<Record<string, any>>;
1015
+ dispatch: (action: TActionState) => void;
1016
+ data: Record<string, any>;
1017
+ requests: IRequestOpts[];
1018
+ sendRequest: (requestNameOrAction: string, ...params: any[]) => void;
1019
+ executeExp: (param: TExpression, args: any) => any;
1020
+ execute: (executeList: TExecuteItem[], args: any[]) => void;
1021
+ stores: Record<string, Ref$1<UnwrapRef<any>>>;
1022
+ metas: Record<string, Ref$1<UnwrapRef<any>>>;
1023
+ }
1024
+ declare const useProModule: () => IProModuleProvide;
1025
+ declare const provideProModule: (ctx: IProModuleProvide) => void;
1026
+ declare const useModuleEvent: (cb: (action: TActionEvent) => void) => void;
1027
+ interface IRequestOpts {
1028
+ actor: IRequestActor;
1029
+ /**
1030
+ * 如果设置action,可以使用该值发起请求 住:要保证唯一性
1031
+ * 设置该字段原因:因为actor中的name不友好,可以理解为一个备选方案
1032
+ */
1033
+ action?: string;
1034
+ stateName?: string;
1035
+ loadingName?: string;
1036
+ convertParams?: (...params: any[]) => Record<string, any>;
1037
+ convertParamsEx?: TExpression;
1038
+ convertData?: (actor: IRequestActor) => Record<string, any>;
1039
+ convertDataEx?: TExpression;
1040
+ onSuccess?: (actor?: IRequestActor) => void;
1041
+ onSuccessEx?: TExecuteItem[];
1042
+ onFailed?: (actor?: IRequestActor) => void;
1043
+ onFailedEx?: TExecuteItem[];
1044
+ }
1045
+ declare const RequestAction: {
1046
+ Success: string;
1047
+ Fail: string;
1048
+ };
1049
+ declare const proModuleProps: () => {
1050
+ /**
1051
+ * module状态
1052
+ */
1053
+ state: {
1054
+ type: PropType<Record<string, any>>;
1055
+ };
1056
+ initState: {
1057
+ type: PropType<object>;
1058
+ };
1059
+ /**
1060
+ * store names
1061
+ */
1062
+ storeKeys: {
1063
+ type: PropType<string[]>;
1064
+ };
1065
+ /**
1066
+ * meta names (actorName)
1067
+ */
1068
+ metaKeys: {
1069
+ type: PropType<TMetaKey[]>;
1070
+ };
1071
+ /**
1072
+ * 组件集
1073
+ */
1074
+ elementMap: {
1075
+ type: PropType<TElementMap>;
1076
+ };
1077
+ /**
1078
+ * 组件描述(树)
1079
+ */
1080
+ elementConfigs: {
1081
+ type: PropType<IElementConfig | IElementConfig[]>;
1082
+ };
1083
+ /**
1084
+ * requests
1085
+ */
1086
+ actors: {
1087
+ type: PropType<IRequestActor<any, any, any>[]>;
1088
+ };
1089
+ requests: {
1090
+ type: PropType<IRequestOpts[]>;
1091
+ };
1092
+ };
1093
+ declare type ProModuleProps = Partial<ExtractPropTypes<ReturnType<typeof proModuleProps>>>;
1094
+ declare const ProModule: vue.DefineComponent<Partial<ExtractPropTypes<{
1095
+ /**
1096
+ * module状态
1097
+ */
1098
+ state: {
1099
+ type: PropType<Record<string, any>>;
1100
+ };
1101
+ initState: {
1102
+ type: PropType<object>;
1103
+ };
1104
+ /**
1105
+ * store names
1106
+ */
1107
+ storeKeys: {
1108
+ type: PropType<string[]>;
1109
+ };
1110
+ /**
1111
+ * meta names (actorName)
1112
+ */
1113
+ metaKeys: {
1114
+ type: PropType<TMetaKey[]>;
1115
+ };
1116
+ /**
1117
+ * 组件集
1118
+ */
1119
+ elementMap: {
1120
+ type: PropType<TElementMap>;
1121
+ };
1122
+ /**
1123
+ * 组件描述(树)
1124
+ */
1125
+ elementConfigs: {
1126
+ type: PropType<IElementConfig | IElementConfig[]>;
1127
+ };
1128
+ /**
1129
+ * requests
1130
+ */
1131
+ actors: {
1132
+ type: PropType<IRequestActor<any, any, any>[]>;
1133
+ };
1134
+ requests: {
1135
+ type: PropType<IRequestOpts[]>;
1136
+ };
1137
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
1138
+ /**
1139
+ * module状态
1140
+ */
1141
+ state: {
1142
+ type: PropType<Record<string, any>>;
1143
+ };
1144
+ initState: {
1145
+ type: PropType<object>;
1146
+ };
1147
+ /**
1148
+ * store names
1149
+ */
1150
+ storeKeys: {
1151
+ type: PropType<string[]>;
1152
+ };
1153
+ /**
1154
+ * meta names (actorName)
1155
+ */
1156
+ metaKeys: {
1157
+ type: PropType<TMetaKey[]>;
1158
+ };
1159
+ /**
1160
+ * 组件集
1161
+ */
1162
+ elementMap: {
1163
+ type: PropType<TElementMap>;
1164
+ };
1165
+ /**
1166
+ * 组件描述(树)
1167
+ */
1168
+ elementConfigs: {
1169
+ type: PropType<IElementConfig | IElementConfig[]>;
1170
+ };
1171
+ /**
1172
+ * requests
1173
+ */
1174
+ actors: {
1175
+ type: PropType<IRequestActor<any, any, any>[]>;
1176
+ };
1177
+ requests: {
1178
+ type: PropType<IRequestOpts[]>;
1179
+ };
1180
+ }>>>, {}>;
1181
+
1182
+ declare type TConfigData = {
1183
+ initState?: Record<string, any>;
1184
+ initExecuteList?: TExecuteItem[];
1185
+ storeKeys?: string[];
1186
+ requests?: Omit<IRequestOpts, "actor"> & {
1187
+ actor: string;
1188
+ }[];
1189
+ elementConfigs?: IElementConfig | IElementConfig[];
1190
+ };
1191
+ declare const createModule: ({ actors, configData, configDataExtra, Logic, }: {
1192
+ actors?: IRequestActor<any, any, any>[] | undefined;
1193
+ configData?: TConfigData | undefined;
1194
+ configDataExtra?: Record<string, any> | undefined;
1195
+ Logic?: DefineComponent<{}, {}, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}> | undefined;
1196
+ }) => DefineComponent<unknown, () => JSX.Element | null, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
1197
+
1087
1198
  interface IAccess extends Record<string, any> {
1088
1199
  token?: string;
1089
1200
  }
1090
- declare type TAccess = UnwrapNestedRefs$1<IAccess>;
1201
+ declare type TAccess = UnwrapNestedRefs<IAccess>;
1091
1202
  declare const useAccess: () => {
1092
1203
  access: TAccess;
1093
1204
  setAccess: (access: TAccess) => void;
@@ -1104,9 +1215,9 @@ interface IPer extends Record<string, any> {
1104
1215
  buttonMap?: Record<string, boolean>;
1105
1216
  }
1106
1217
  declare type TLogonUserProvide = {
1107
- user: UnwrapNestedRefs<IUser>;
1218
+ user: UnwrapNestedRefs$1<IUser>;
1108
1219
  setUser: (u: IUser) => void;
1109
- per: UnwrapNestedRefs<IPer>;
1220
+ per: UnwrapNestedRefs$1<IPer>;
1110
1221
  setPer: (u: IPer) => void;
1111
1222
  opts: Record<string, any>;
1112
1223
  };
@@ -1214,10 +1325,10 @@ declare const ProGrid: vue.DefineComponent<Partial<ExtractPropTypes<{
1214
1325
  interface IProFormProvideExtra extends Record<string, any> {
1215
1326
  }
1216
1327
  interface IProFormProvide extends IProFormProvideExtra {
1217
- formState: UnwrapNestedRefs<Record<string, any>>;
1218
- showState: UnwrapNestedRefs<Record<string, any>>;
1219
- readonlyState: UnwrapNestedRefs<Record<string, any>>;
1220
- disableState: UnwrapNestedRefs<Record<string, any>>;
1328
+ formState: UnwrapNestedRefs$1<Record<string, any>>;
1329
+ showState: UnwrapNestedRefs$1<Record<string, any>>;
1330
+ readonlyState: UnwrapNestedRefs$1<Record<string, any>>;
1331
+ disableState: UnwrapNestedRefs$1<Record<string, any>>;
1221
1332
  readonly: Ref<boolean | undefined>;
1222
1333
  elementMap?: TElementMap;
1223
1334
  formElementMap?: TElementMap;
@@ -1333,6 +1444,13 @@ declare const proFormProps: () => {
1333
1444
  type: PropType<(...e: any[]) => boolean | undefined>;
1334
1445
  default: undefined;
1335
1446
  };
1447
+ /**
1448
+ * onFinish 中加入额外的值
1449
+ */
1450
+ onGetExtraValues: {
1451
+ type: PropType<(opts?: any) => Record<string, any> | undefined>;
1452
+ default: undefined;
1453
+ };
1336
1454
  };
1337
1455
  declare type ProFormProps = Partial<ExtractPropTypes<ReturnType<typeof proFormProps>>> & ProBaseProps & Omit<ProGridProps, "items"> & {
1338
1456
  onFinish?: (showValues?: Record<string, any>, values?: Record<string, any>, opts?: Pick<IProFormProvide, "userOpe" | "asyncNum">) => void;
@@ -2499,8 +2617,8 @@ declare const ProShowTree: vue.DefineComponent<{
2499
2617
  }>>, {
2500
2618
  render: Function;
2501
2619
  splitStr: string;
2502
- splitStr2: string;
2503
2620
  multiple: boolean;
2621
+ splitStr2: string;
2504
2622
  }>;
2505
2623
  declare const ProShowDate: vue.DefineComponent<{
2506
2624
  value: {
@@ -2611,7 +2729,7 @@ interface IProLayoutProvide {
2611
2729
  tabs: Ref<TLayoutTabMenu[]>;
2612
2730
  showTabs: Ref<boolean>;
2613
2731
  closeTab: (value: string) => void;
2614
- refreshRef: Ref<UnwrapRef<boolean>>;
2732
+ refreshRef: Ref<UnwrapRef$1<boolean>>;
2615
2733
  refresh: (item?: TLayoutMenu) => void;
2616
2734
  }
2617
2735
  declare const useProLayout: () => IProLayoutProvide;
@@ -3263,7 +3381,7 @@ declare const proCurdProps: () => {
3263
3381
  declare type CurdProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdProps>>> & ProBaseProps;
3264
3382
  declare const CurdMethods: string[];
3265
3383
  declare type ProCurdProps = CurdProps & Omit<ProModuleProps, "state" | "requests"> & {
3266
- curdState?: UnwrapNestedRefs<ICurdState>;
3384
+ curdState?: UnwrapNestedRefs$1<ICurdState>;
3267
3385
  };
3268
3386
  declare const ProCurd: vue.DefineComponent<ProCurdProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProCurdProps>, {}>;
3269
3387
  declare const useCurdCommon: () => {
@@ -3278,7 +3396,7 @@ interface IProCurdProvide {
3278
3396
  elementMap: TElementMap;
3279
3397
  formElementMap: TElementMap;
3280
3398
  rowKey: string;
3281
- curdState: UnwrapNestedRefs<ICurdState>;
3399
+ curdState: UnwrapNestedRefs$1<ICurdState>;
3282
3400
  formColumns: Ref<TColumns>;
3283
3401
  descColumns: Ref<TColumns>;
3284
3402
  tableColumns: Ref<TColumns>;
@@ -3776,4 +3894,4 @@ declare const ProAppConfigDrawer: vue.DefineComponent<ProAppConfigDrawerProps, {
3776
3894
  [x: string]: any;
3777
3895
  }>;
3778
3896
 
3779
- export { AddButton, AppConfig, BooleanObjType, BooleanRulesObjType, ColumnSetting, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, DarkThemeToken, ElementKeys, FieldNames, FormAction, FormItemProps, FormRulePrefixMap, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IPer, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProLayoutProvide, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, ITheme, IThemeProvide, IThemeToken, IUser, InternalNamePath, LogonUser, LogonUserKey, ModalCurdOpe, MustLogon, NamePath, PageHeader, PageHeaderProps, PaginationSlotProps, PerSuffix, Permission, PermissionProps, ProAppConfigDrawer, ProAppConfigDrawerProps, ProBaseProps, ProColumnSettingProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormPage, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdListPage, ProCurdListPageConnect, ProCurdListProps, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdModule, ProCurdModuleProps, ProCurdPage, ProCurdPageConnect, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProLayout, ProLayoutKey, ProLayoutProps, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProRouterView, ProRouterViewProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTheme, ProTip, ProTipProps, ProTypography, ProTypographyProps, ProUploadList, ProUploaderText, ProValue, ProWatermark, ProWatermarkProps, RequestAction, RouterMethods, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TAppConfig, TColor, TColumn, TColumns, TConfigData, TCurdActionEvent, TDark, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLayoutMenu, TLayoutTabMenu, TLayoutType, TLight, TLogonUserProvide, TMeta, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRender, TRouter, TSubType, TTableColumn, TTableColumns, TValueType, ThemeKey, ThemeToken, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, createTheme, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getRealRender, getSignValue, getValidValues, isValidConfig, isValidNode, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, showValue, useAccess, useAccessMgr, useAppConfig, useComposeRequestActor, useCurdCommon, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useHasPer, useHasPer2, useLogonUser, useMeta, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProLayout, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore, useTheme };
3897
+ export { AddButton, AppConfig, BooleanObjType, BooleanRulesObjType, ColumnSetting, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, DarkThemeToken, ElementKeys, FieldNames, FormAction, FormItemProps, FormRulePrefixMap, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IPer, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProLayoutProvide, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, ITheme, IThemeProvide, IThemeToken, IUser, InternalNamePath, LogonUser, LogonUserKey, ModalCurdOpe, MustLogon, NamePath, PageHeader, PageHeaderProps, PaginationSlotProps, PerSuffix, Permission, PermissionProps, ProAppConfigDrawer, ProAppConfigDrawerProps, ProBaseProps, ProColumnSettingProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormPage, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdListPage, ProCurdListPageConnect, ProCurdListProps, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdModule, ProCurdModuleProps, ProCurdPage, ProCurdPageConnect, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProLayout, ProLayoutKey, ProLayoutProps, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProRouterView, ProRouterViewProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTheme, ProTip, ProTipProps, ProTypography, ProTypographyProps, ProUploadList, ProUploaderText, ProValue, ProWatermark, ProWatermarkProps, RequestAction, RouterMethods, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TAppConfig, TColor, TColumn, TColumns, TConfigData, TCurdActionEvent, TDark, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLayoutMenu, TLayoutTabMenu, TLayoutType, TLight, TLogonUserProvide, TMeta, TMetaKey, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRender, TRouter, TSetData, TSetDataMeta, TSetDataOpts, TSetDataStore, TSubType, TTableColumn, TTableColumns, TValueType, ThemeKey, ThemeToken, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, createTheme, defaultPage, filterSlotsByPrefix, getColumnFormInputProps, getColumnFormItemName, getColumnValueType, getColumnsOpts, getFirstPropName, getRealRender, getSignValue, getValidValues, isValidConfig, isValidNode, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, setColumnsData, showValue, useAccess, useAccessMgr, useAppConfig, useComposeRequestActor, useCurdCommon, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useGetMetaStoreName, useHasPer, useHasPer2, useLogonUser, useMeta, useMetaLoading, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProLayout, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore, useRegisterMetas, useRegisterStores, useTheme };