@vue-start/pro 0.5.66 → 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,11 +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
+ /************ 表格列宽度 ************ */
71
+ width?: number;
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
+ };
56
85
  extra?: {
57
86
  desc?: Record<string, any>;
58
87
  col?: Record<string, any>;
59
88
  } & Record<string, any>;
89
+ children?: TColumns;
60
90
  };
61
91
  declare type TColumns = TColumn[];
62
92
  /**
@@ -190,6 +220,11 @@ declare const getColumnValueType: (column: TColumn) => TValueType;
190
220
  * @param column
191
221
  */
192
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>;
193
228
  /**
194
229
  * 获取column 中对应的render方法
195
230
  * case1:render为方法的时候,直接返回render;
@@ -283,192 +318,6 @@ declare const Wrapper: vue.DefineComponent<{
283
318
  elementConfig: IElementConfig;
284
319
  }>, {}>;
285
320
 
286
- interface IProModuleProvide {
287
- elementMap: TElementMap;
288
- subject$: Subject<TActionEvent>;
289
- sendEvent: (action: TActionEvent) => void;
290
- state: UnwrapNestedRefs<Record<string, any>>;
291
- dispatch: (action: TActionState) => void;
292
- data: Record<string, any>;
293
- requests: IRequestOpts[];
294
- sendRequest: (requestNameOrAction: string, ...params: any[]) => void;
295
- executeExp: (param: TExpression, args: any) => any;
296
- execute: (executeList: TExecuteItem[], args: any[]) => void;
297
- }
298
- declare const useProModule: () => IProModuleProvide;
299
- declare const provideProModule: (ctx: IProModuleProvide) => void;
300
- declare const useModuleEvent: (cb: (action: TActionEvent) => void) => void;
301
- interface IRequestOpts {
302
- actor: IRequestActor;
303
- /**
304
- * 如果设置action,可以使用该值发起请求 住:要保证唯一性
305
- * 设置该字段原因:因为actor中的name不友好,可以理解为一个备选方案
306
- */
307
- action?: string;
308
- stateName?: string;
309
- loadingName?: string;
310
- convertParams?: (...params: any[]) => Record<string, any>;
311
- convertParamsEx?: TExpression;
312
- convertData?: (actor: IRequestActor) => Record<string, any>;
313
- convertDataEx?: TExpression;
314
- onSuccess?: (actor?: IRequestActor) => void;
315
- onSuccessEx?: TExecuteItem[];
316
- onFailed?: (actor?: IRequestActor) => void;
317
- onFailedEx?: TExecuteItem[];
318
- }
319
- declare const RequestAction: {
320
- Success: string;
321
- Fail: string;
322
- };
323
- declare const proModuleProps: () => {
324
- /**
325
- * module状态
326
- */
327
- state: {
328
- type: PropType<Record<string, any>>;
329
- };
330
- initState: {
331
- type: PropType<object>;
332
- };
333
- /**
334
- * store names
335
- */
336
- storeKeys: {
337
- type: PropType<string[]>;
338
- };
339
- /**
340
- * meta names
341
- */
342
- metasKeys: {
343
- type: PropType<string[]>;
344
- };
345
- /**
346
- * 组件集
347
- */
348
- elementMap: {
349
- type: PropType<TElementMap>;
350
- };
351
- /**
352
- * 组件描述(树)
353
- */
354
- elementConfigs: {
355
- type: PropType<IElementConfig | IElementConfig[]>;
356
- };
357
- /**
358
- * requests
359
- */
360
- actors: {
361
- type: PropType<IRequestActor<any, any, any>[]>;
362
- };
363
- requests: {
364
- type: PropType<IRequestOpts[]>;
365
- };
366
- };
367
- declare type ProModuleProps = Partial<ExtractPropTypes<ReturnType<typeof proModuleProps>>>;
368
- declare const ProModule: vue.DefineComponent<Partial<ExtractPropTypes<{
369
- /**
370
- * module状态
371
- */
372
- state: {
373
- type: PropType<Record<string, any>>;
374
- };
375
- initState: {
376
- type: PropType<object>;
377
- };
378
- /**
379
- * store names
380
- */
381
- storeKeys: {
382
- type: PropType<string[]>;
383
- };
384
- /**
385
- * meta names
386
- */
387
- metasKeys: {
388
- type: PropType<string[]>;
389
- };
390
- /**
391
- * 组件集
392
- */
393
- elementMap: {
394
- type: PropType<TElementMap>;
395
- };
396
- /**
397
- * 组件描述(树)
398
- */
399
- elementConfigs: {
400
- type: PropType<IElementConfig | IElementConfig[]>;
401
- };
402
- /**
403
- * requests
404
- */
405
- actors: {
406
- type: PropType<IRequestActor<any, any, any>[]>;
407
- };
408
- requests: {
409
- type: PropType<IRequestOpts[]>;
410
- };
411
- }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
412
- /**
413
- * module状态
414
- */
415
- state: {
416
- type: PropType<Record<string, any>>;
417
- };
418
- initState: {
419
- type: PropType<object>;
420
- };
421
- /**
422
- * store names
423
- */
424
- storeKeys: {
425
- type: PropType<string[]>;
426
- };
427
- /**
428
- * meta names
429
- */
430
- metasKeys: {
431
- type: PropType<string[]>;
432
- };
433
- /**
434
- * 组件集
435
- */
436
- elementMap: {
437
- type: PropType<TElementMap>;
438
- };
439
- /**
440
- * 组件描述(树)
441
- */
442
- elementConfigs: {
443
- type: PropType<IElementConfig | IElementConfig[]>;
444
- };
445
- /**
446
- * requests
447
- */
448
- actors: {
449
- type: PropType<IRequestActor<any, any, any>[]>;
450
- };
451
- requests: {
452
- type: PropType<IRequestOpts[]>;
453
- };
454
- }>>>, {}>;
455
-
456
- declare type TConfigData = {
457
- initState?: Record<string, any>;
458
- initExecuteList?: TExecuteItem[];
459
- storeKeys?: string[];
460
- requests?: Omit<IRequestOpts, "actor"> & {
461
- actor: string;
462
- }[];
463
- elementConfigs?: IElementConfig | IElementConfig[];
464
- };
465
- declare const createModule: ({ actors, configData, configDataExtra, Logic, }: {
466
- actors?: IRequestActor<any, any, any>[] | undefined;
467
- configData?: TConfigData | undefined;
468
- configDataExtra?: Record<string, any> | undefined;
469
- Logic?: DefineComponent<{}, {}, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}> | undefined;
470
- }) => DefineComponent<unknown, () => JSX.Element | null, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
471
-
472
321
  declare type TInitialState<T> = T | (() => T);
473
322
  declare type TRegisterStore = {
474
323
  key: string;
@@ -485,36 +334,12 @@ declare const useDispatchStore: <T>() => (key: string, stateOrUpdater: T | TUpda
485
334
  * 返回ref对象
486
335
  */
487
336
  declare const useReadStore: (key: string) => _vue_reactivity.Ref<any>;
488
-
489
- declare const useDoneRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
490
- declare const useFailedRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
491
- declare const useComposeRequestActor: (actors: (IRequestActor | string)[], options: {
492
- onSuccess?: ((actor: IRequestActor) => void) | undefined;
493
- onFailed?: ((actor: IRequestActor) => void) | undefined;
494
- onFinish?: ((actor: IRequestActor) => void) | undefined;
495
- }, cancelWhileUnmount?: boolean) => void;
496
- /******************************* meta *********************************/
497
337
  /**
498
- * 转换请求数据
499
- * @param actor
500
- * @param convertData
501
- * @param convertPath
338
+ * 批量读取全局状态
339
+ * @param storeKeys
340
+ * @returns
502
341
  */
503
- declare const convertResData: (actor: IRequestActor, convertData?: ((res: IRequestActor["res"], actor: IRequestActor) => any) | undefined, convertPath?: (string | number)[]) => any;
504
- declare type TMeta = {
505
- actorName: string;
506
- storeName?: string | ((params?: Record<string, any>) => string);
507
- initParams?: Record<string, any>;
508
- convertPath?: (string | number)[];
509
- convertData?: (data: any, actor: IRequestActor) => any;
510
- };
511
- /**
512
- * 读取meta状态
513
- * @param actorName
514
- * @param params
515
- */
516
- declare const useMeta: <T>(actorName: string, params?: Record<string, any>) => Ref<T | undefined>;
517
- declare const useMetaRegister: (registerMetaMap: IProConfigProvide["registerMetaMap"], registerActorMap: IProConfigProvide["registerActorMap"]) => void;
342
+ declare const useRegisterStores: (storeKeys: string[]) => {};
518
343
 
519
344
  declare type TOpenMenu = (menu: any) => void;
520
345
  declare const RouterMethods: {
@@ -757,6 +582,9 @@ declare const proBasePropsFn: () => {
757
582
  columns: {
758
583
  type: PropType<TColumns>;
759
584
  };
585
+ convertColumnPre: {
586
+ type: PropType<(t: TColumn) => TColumn>;
587
+ };
760
588
  convertColumn: {
761
589
  type: PropType<(t: TColumn) => TColumn>;
762
590
  };
@@ -776,7 +604,6 @@ declare const proBasePropsFn: () => {
776
604
  };
777
605
  declare type ProBaseProps = Partial<ExtractPropTypes<ReturnType<typeof proBasePropsFn>>>;
778
606
  declare const proBaseProps: ProBaseProps;
779
- declare const mergeState: (columns: TColumns, columnState?: Record<string, any>, columnState2?: Record<string, any>) => TColumns;
780
607
  declare type ProDispatchRequestType = (actorName: string, params?: IRequestActor["req"], extra?: IRequestActor["extra"]) => IRequestActor | undefined;
781
608
  declare type TFormExtraMap = {
782
609
  rulePrefixMap?: Record<string, string>;
@@ -805,6 +632,9 @@ interface IProConfigProvide {
805
632
  * 注册的全局Meta
806
633
  */
807
634
  registerMetaMap: Record<string, TMeta>;
635
+ metaState: UnwrapNestedRefs<{
636
+ [key: string]: boolean;
637
+ }>;
808
638
  /**
809
639
  * 发送请求
810
640
  * @param actorName
@@ -1082,10 +912,293 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
1082
912
  */
1083
913
  declare const createProConfig: (config?: ProConfigProps) => (app: App) => void;
1084
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
+
1085
1198
  interface IAccess extends Record<string, any> {
1086
1199
  token?: string;
1087
1200
  }
1088
- declare type TAccess = UnwrapNestedRefs$1<IAccess>;
1201
+ declare type TAccess = UnwrapNestedRefs<IAccess>;
1089
1202
  declare const useAccess: () => {
1090
1203
  access: TAccess;
1091
1204
  setAccess: (access: TAccess) => void;
@@ -1102,9 +1215,9 @@ interface IPer extends Record<string, any> {
1102
1215
  buttonMap?: Record<string, boolean>;
1103
1216
  }
1104
1217
  declare type TLogonUserProvide = {
1105
- user: UnwrapNestedRefs<IUser>;
1218
+ user: UnwrapNestedRefs$1<IUser>;
1106
1219
  setUser: (u: IUser) => void;
1107
- per: UnwrapNestedRefs<IPer>;
1220
+ per: UnwrapNestedRefs$1<IPer>;
1108
1221
  setPer: (u: IPer) => void;
1109
1222
  opts: Record<string, any>;
1110
1223
  };
@@ -1212,10 +1325,10 @@ declare const ProGrid: vue.DefineComponent<Partial<ExtractPropTypes<{
1212
1325
  interface IProFormProvideExtra extends Record<string, any> {
1213
1326
  }
1214
1327
  interface IProFormProvide extends IProFormProvideExtra {
1215
- formState: UnwrapNestedRefs<Record<string, any>>;
1216
- showState: UnwrapNestedRefs<Record<string, any>>;
1217
- readonlyState: UnwrapNestedRefs<Record<string, any>>;
1218
- 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>>;
1219
1332
  readonly: Ref<boolean | undefined>;
1220
1333
  elementMap?: TElementMap;
1221
1334
  formElementMap?: TElementMap;
@@ -1331,6 +1444,13 @@ declare const proFormProps: () => {
1331
1444
  type: PropType<(...e: any[]) => boolean | undefined>;
1332
1445
  default: undefined;
1333
1446
  };
1447
+ /**
1448
+ * onFinish 中加入额外的值
1449
+ */
1450
+ onGetExtraValues: {
1451
+ type: PropType<(opts?: any) => Record<string, any> | undefined>;
1452
+ default: undefined;
1453
+ };
1334
1454
  };
1335
1455
  declare type ProFormProps = Partial<ExtractPropTypes<ReturnType<typeof proFormProps>>> & ProBaseProps & Omit<ProGridProps, "items"> & {
1336
1456
  onFinish?: (showValues?: Record<string, any>, values?: Record<string, any>, opts?: Pick<IProFormProvide, "userOpe" | "asyncNum">) => void;
@@ -2497,8 +2617,8 @@ declare const ProShowTree: vue.DefineComponent<{
2497
2617
  }>>, {
2498
2618
  render: Function;
2499
2619
  splitStr: string;
2500
- splitStr2: string;
2501
2620
  multiple: boolean;
2621
+ splitStr2: string;
2502
2622
  }>;
2503
2623
  declare const ProShowDate: vue.DefineComponent<{
2504
2624
  value: {
@@ -2609,7 +2729,7 @@ interface IProLayoutProvide {
2609
2729
  tabs: Ref<TLayoutTabMenu[]>;
2610
2730
  showTabs: Ref<boolean>;
2611
2731
  closeTab: (value: string) => void;
2612
- refreshRef: Ref<UnwrapRef<boolean>>;
2732
+ refreshRef: Ref<UnwrapRef$1<boolean>>;
2613
2733
  refresh: (item?: TLayoutMenu) => void;
2614
2734
  }
2615
2735
  declare const useProLayout: () => IProLayoutProvide;
@@ -3261,7 +3381,7 @@ declare const proCurdProps: () => {
3261
3381
  declare type CurdProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdProps>>> & ProBaseProps;
3262
3382
  declare const CurdMethods: string[];
3263
3383
  declare type ProCurdProps = CurdProps & Omit<ProModuleProps, "state" | "requests"> & {
3264
- curdState?: UnwrapNestedRefs<ICurdState>;
3384
+ curdState?: UnwrapNestedRefs$1<ICurdState>;
3265
3385
  };
3266
3386
  declare const ProCurd: vue.DefineComponent<ProCurdProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProCurdProps>, {}>;
3267
3387
  declare const useCurdCommon: () => {
@@ -3276,7 +3396,7 @@ interface IProCurdProvide {
3276
3396
  elementMap: TElementMap;
3277
3397
  formElementMap: TElementMap;
3278
3398
  rowKey: string;
3279
- curdState: UnwrapNestedRefs<ICurdState>;
3399
+ curdState: UnwrapNestedRefs$1<ICurdState>;
3280
3400
  formColumns: Ref<TColumns>;
3281
3401
  descColumns: Ref<TColumns>;
3282
3402
  tableColumns: Ref<TColumns>;
@@ -3774,4 +3894,4 @@ declare const ProAppConfigDrawer: vue.DefineComponent<ProAppConfigDrawerProps, {
3774
3894
  [x: string]: any;
3775
3895
  }>;
3776
3896
 
3777
- 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 };