@vue-start/pro 0.5.67 → 0.5.69

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
- /**
500
- * 转换请求数据
501
- * @param actor
502
- * @param convertData
503
- * @param convertPath
504
- */
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
337
  /**
514
- * 读取meta状态
515
- * @param actorName
516
- * @param params
338
+ * 批量读取全局状态
339
+ * @param storeKeys
340
+ * @returns
517
341
  */
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: {
@@ -739,6 +562,23 @@ declare const AppConfig: {
739
562
  };
740
563
  declare type TAppConfig = typeof AppConfig;
741
564
 
565
+ declare const DEVICE_MODES: {
566
+ MOBILE: string;
567
+ TABLET: string;
568
+ PC: string;
569
+ LARGE_PC: string;
570
+ };
571
+ declare type TDeviceMode = typeof DEVICE_MODES[keyof typeof DEVICE_MODES];
572
+ declare const getDeviceMode: (width: number) => string;
573
+ declare const useResponsive: () => {
574
+ width: vue.Ref<number>;
575
+ device: vue.ComputedRef<string>;
576
+ isMobile: vue.ComputedRef<boolean>;
577
+ isTablet: vue.ComputedRef<boolean>;
578
+ isPC: vue.ComputedRef<boolean>;
579
+ isLargePC: vue.ComputedRef<boolean>;
580
+ };
581
+
742
582
  declare const proBasePropsFn: () => {
743
583
  /**
744
584
  * 组件集
@@ -759,6 +599,9 @@ declare const proBasePropsFn: () => {
759
599
  columns: {
760
600
  type: PropType<TColumns>;
761
601
  };
602
+ convertColumnPre: {
603
+ type: PropType<(t: TColumn) => TColumn>;
604
+ };
762
605
  convertColumn: {
763
606
  type: PropType<(t: TColumn) => TColumn>;
764
607
  };
@@ -778,7 +621,6 @@ declare const proBasePropsFn: () => {
778
621
  };
779
622
  declare type ProBaseProps = Partial<ExtractPropTypes<ReturnType<typeof proBasePropsFn>>>;
780
623
  declare const proBaseProps: ProBaseProps;
781
- declare const mergeState: (columns: TColumns, columnState?: Record<string, any>, columnState2?: Record<string, any>) => TColumns;
782
624
  declare type ProDispatchRequestType = (actorName: string, params?: IRequestActor["req"], extra?: IRequestActor["extra"]) => IRequestActor | undefined;
783
625
  declare type TFormExtraMap = {
784
626
  rulePrefixMap?: Record<string, string>;
@@ -807,6 +649,9 @@ interface IProConfigProvide {
807
649
  * 注册的全局Meta
808
650
  */
809
651
  registerMetaMap: Record<string, TMeta>;
652
+ metaState: UnwrapNestedRefs<{
653
+ [key: string]: boolean;
654
+ }>;
810
655
  /**
811
656
  * 发送请求
812
657
  * @param actorName
@@ -824,6 +669,7 @@ interface IProConfigProvide {
824
669
  appConfig: TAppConfig;
825
670
  localeConfig: ComputedRef<Record<string, string>>;
826
671
  t: ComputedRef<(k: string) => string>;
672
+ device: ComputedRef<TDeviceMode>;
827
673
  }
828
674
  declare const proConfigProps: () => {
829
675
  elementMap: {
@@ -1084,10 +930,293 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
1084
930
  */
1085
931
  declare const createProConfig: (config?: ProConfigProps) => (app: App) => void;
1086
932
 
933
+ declare const useDoneRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
934
+ declare const useFailedRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
935
+ declare const useComposeRequestActor: (actors: (IRequestActor | string)[], options: {
936
+ onSuccess?: ((actor: IRequestActor) => void) | undefined;
937
+ onFailed?: ((actor: IRequestActor) => void) | undefined;
938
+ onFinish?: ((actor: IRequestActor) => void) | undefined;
939
+ }, cancelWhileUnmount?: boolean) => void;
940
+ /******************************* meta *********************************/
941
+ /**
942
+ * 转换请求数据
943
+ * @param actor
944
+ * @param convertData
945
+ * @param convertPath
946
+ */
947
+ declare const convertResData: (actor: IRequestActor, convertData?: ((res: IRequestActor["res"], actor: IRequestActor) => any) | undefined, convertPath?: (string | number)[]) => any;
948
+ declare type TMeta = {
949
+ actorName: string;
950
+ storeName: string | ((params?: Record<string, any>) => string);
951
+ initParams?: Record<string, any>;
952
+ convertPath?: (string | number)[];
953
+ convertData?: (data: any, actor: IRequestActor) => any;
954
+ };
955
+ declare const useGetMetaStoreName: () => (actorName: string, params?: Record<string, any>) => string | undefined;
956
+ /**
957
+ * 读取meta加载状态
958
+ */
959
+ declare const useMetaLoading: (actorName: string, params?: Record<string, any>) => ComputedRef<boolean>;
960
+ /**
961
+ * 读取meta状态
962
+ * @param actorName
963
+ * @param params
964
+ */
965
+ declare const useMeta: <T>(actorName: string, params?: Record<string, any>) => Ref<T | undefined>;
966
+ declare type TMetaKey = {
967
+ actorName: string;
968
+ params?: Record<string, any>;
969
+ };
970
+ declare const useRegisterMetas: (metaKeys: TMetaKey[]) => {};
971
+ declare const useMetaRegister: (registerMetaMap: IProConfigProvide["registerMetaMap"], registerActorMap: IProConfigProvide["registerActorMap"], metaState: {
972
+ [key: string]: boolean;
973
+ }) => void;
974
+
975
+ declare const getColumnsOpts: (columns: TColumns) => {
976
+ storeKeys: string[];
977
+ metaKeys: TMetaKey[];
978
+ };
979
+ declare type TSetDataOpts = {
980
+ stores?: Record<string, Ref$1<UnwrapRef<any>>>;
981
+ metas?: Record<string, Ref$1<UnwrapRef<any>>>;
982
+ getMetaStoreName?: (actorName: string, params?: Record<string, any>) => string | undefined;
983
+ };
984
+ declare const setColumnsData: (columns: TColumns, opts: TSetDataOpts) => {
985
+ title?: string | vue.VNode<vue.RendererNode, vue.RendererElement, {
986
+ [key: string]: any;
987
+ }> | undefined;
988
+ dataIndex?: string | number | undefined;
989
+ valueType?: string | undefined;
990
+ formValueType?: string | undefined;
991
+ showProps?: Record<string, any> | undefined;
992
+ formItemProps?: {
993
+ name?: string | undefined;
994
+ label?: string | undefined;
995
+ } | undefined;
996
+ formFieldProps?: Record<string, any> | undefined;
997
+ props?: Record<string, any> | undefined;
998
+ inputProps?: Record<string, any> | undefined;
999
+ render?: TRender | undefined;
1000
+ inputRender?: TRender | undefined;
1001
+ descRender?: string | TRender | undefined;
1002
+ formReadRender?: string | TRender | undefined;
1003
+ tableRender?: string | TRender | undefined;
1004
+ search?: boolean | undefined;
1005
+ width?: number | undefined;
1006
+ minWidth?: number | undefined;
1007
+ setData?: (TSetDataMeta | TSetDataStore)[] | undefined;
1008
+ paths?: string | string[] | undefined;
1009
+ formExtra?: {
1010
+ label?: {
1011
+ name: string;
1012
+ opts?: {
1013
+ showAllPath?: boolean | undefined;
1014
+ } | undefined;
1015
+ } | undefined;
1016
+ } | undefined;
1017
+ extra?: ({
1018
+ desc?: Record<string, any> | undefined;
1019
+ col?: Record<string, any> | undefined;
1020
+ } & Record<string, any>) | undefined;
1021
+ children?: TColumns | undefined;
1022
+ }[];
1023
+ declare const mergeState: (columns: TColumns, columnState?: Record<string, any>, columnState2?: Record<string, any>, opts?: (TSetDataOpts & {
1024
+ convertColumnPre?: ((t: TColumn) => TColumn) | undefined;
1025
+ convertColumn?: ((t: TColumn) => TColumn) | undefined;
1026
+ }) | undefined) => TColumns;
1027
+
1028
+ interface IProModuleProvide {
1029
+ elementMap: TElementMap;
1030
+ subject$: Subject<TActionEvent>;
1031
+ sendEvent: (action: TActionEvent) => void;
1032
+ state: UnwrapNestedRefs$1<Record<string, any>>;
1033
+ dispatch: (action: TActionState) => void;
1034
+ data: Record<string, any>;
1035
+ requests: IRequestOpts[];
1036
+ sendRequest: (requestNameOrAction: string, ...params: any[]) => void;
1037
+ executeExp: (param: TExpression, args: any) => any;
1038
+ execute: (executeList: TExecuteItem[], args: any[]) => void;
1039
+ stores: Record<string, Ref$1<UnwrapRef<any>>>;
1040
+ metas: Record<string, Ref$1<UnwrapRef<any>>>;
1041
+ }
1042
+ declare const useProModule: () => IProModuleProvide;
1043
+ declare const provideProModule: (ctx: IProModuleProvide) => void;
1044
+ declare const useModuleEvent: (cb: (action: TActionEvent) => void) => void;
1045
+ interface IRequestOpts {
1046
+ actor: IRequestActor;
1047
+ /**
1048
+ * 如果设置action,可以使用该值发起请求 住:要保证唯一性
1049
+ * 设置该字段原因:因为actor中的name不友好,可以理解为一个备选方案
1050
+ */
1051
+ action?: string;
1052
+ stateName?: string;
1053
+ loadingName?: string;
1054
+ convertParams?: (...params: any[]) => Record<string, any>;
1055
+ convertParamsEx?: TExpression;
1056
+ convertData?: (actor: IRequestActor) => Record<string, any>;
1057
+ convertDataEx?: TExpression;
1058
+ onSuccess?: (actor?: IRequestActor) => void;
1059
+ onSuccessEx?: TExecuteItem[];
1060
+ onFailed?: (actor?: IRequestActor) => void;
1061
+ onFailedEx?: TExecuteItem[];
1062
+ }
1063
+ declare const RequestAction: {
1064
+ Success: string;
1065
+ Fail: string;
1066
+ };
1067
+ declare const proModuleProps: () => {
1068
+ /**
1069
+ * module状态
1070
+ */
1071
+ state: {
1072
+ type: PropType<Record<string, any>>;
1073
+ };
1074
+ initState: {
1075
+ type: PropType<object>;
1076
+ };
1077
+ /**
1078
+ * store names
1079
+ */
1080
+ storeKeys: {
1081
+ type: PropType<string[]>;
1082
+ };
1083
+ /**
1084
+ * meta names (actorName)
1085
+ */
1086
+ metaKeys: {
1087
+ type: PropType<TMetaKey[]>;
1088
+ };
1089
+ /**
1090
+ * 组件集
1091
+ */
1092
+ elementMap: {
1093
+ type: PropType<TElementMap>;
1094
+ };
1095
+ /**
1096
+ * 组件描述(树)
1097
+ */
1098
+ elementConfigs: {
1099
+ type: PropType<IElementConfig | IElementConfig[]>;
1100
+ };
1101
+ /**
1102
+ * requests
1103
+ */
1104
+ actors: {
1105
+ type: PropType<IRequestActor<any, any, any>[]>;
1106
+ };
1107
+ requests: {
1108
+ type: PropType<IRequestOpts[]>;
1109
+ };
1110
+ };
1111
+ declare type ProModuleProps = Partial<ExtractPropTypes<ReturnType<typeof proModuleProps>>>;
1112
+ declare const ProModule: vue.DefineComponent<Partial<ExtractPropTypes<{
1113
+ /**
1114
+ * module状态
1115
+ */
1116
+ state: {
1117
+ type: PropType<Record<string, any>>;
1118
+ };
1119
+ initState: {
1120
+ type: PropType<object>;
1121
+ };
1122
+ /**
1123
+ * store names
1124
+ */
1125
+ storeKeys: {
1126
+ type: PropType<string[]>;
1127
+ };
1128
+ /**
1129
+ * meta names (actorName)
1130
+ */
1131
+ metaKeys: {
1132
+ type: PropType<TMetaKey[]>;
1133
+ };
1134
+ /**
1135
+ * 组件集
1136
+ */
1137
+ elementMap: {
1138
+ type: PropType<TElementMap>;
1139
+ };
1140
+ /**
1141
+ * 组件描述(树)
1142
+ */
1143
+ elementConfigs: {
1144
+ type: PropType<IElementConfig | IElementConfig[]>;
1145
+ };
1146
+ /**
1147
+ * requests
1148
+ */
1149
+ actors: {
1150
+ type: PropType<IRequestActor<any, any, any>[]>;
1151
+ };
1152
+ requests: {
1153
+ type: PropType<IRequestOpts[]>;
1154
+ };
1155
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
1156
+ /**
1157
+ * module状态
1158
+ */
1159
+ state: {
1160
+ type: PropType<Record<string, any>>;
1161
+ };
1162
+ initState: {
1163
+ type: PropType<object>;
1164
+ };
1165
+ /**
1166
+ * store names
1167
+ */
1168
+ storeKeys: {
1169
+ type: PropType<string[]>;
1170
+ };
1171
+ /**
1172
+ * meta names (actorName)
1173
+ */
1174
+ metaKeys: {
1175
+ type: PropType<TMetaKey[]>;
1176
+ };
1177
+ /**
1178
+ * 组件集
1179
+ */
1180
+ elementMap: {
1181
+ type: PropType<TElementMap>;
1182
+ };
1183
+ /**
1184
+ * 组件描述(树)
1185
+ */
1186
+ elementConfigs: {
1187
+ type: PropType<IElementConfig | IElementConfig[]>;
1188
+ };
1189
+ /**
1190
+ * requests
1191
+ */
1192
+ actors: {
1193
+ type: PropType<IRequestActor<any, any, any>[]>;
1194
+ };
1195
+ requests: {
1196
+ type: PropType<IRequestOpts[]>;
1197
+ };
1198
+ }>>>, {}>;
1199
+
1200
+ declare type TConfigData = {
1201
+ initState?: Record<string, any>;
1202
+ initExecuteList?: TExecuteItem[];
1203
+ storeKeys?: string[];
1204
+ requests?: Omit<IRequestOpts, "actor"> & {
1205
+ actor: string;
1206
+ }[];
1207
+ elementConfigs?: IElementConfig | IElementConfig[];
1208
+ };
1209
+ declare const createModule: ({ actors, configData, configDataExtra, Logic, }: {
1210
+ actors?: IRequestActor<any, any, any>[] | undefined;
1211
+ configData?: TConfigData | undefined;
1212
+ configDataExtra?: Record<string, any> | undefined;
1213
+ Logic?: DefineComponent<{}, {}, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}> | undefined;
1214
+ }) => DefineComponent<unknown, () => JSX.Element | null, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
1215
+
1087
1216
  interface IAccess extends Record<string, any> {
1088
1217
  token?: string;
1089
1218
  }
1090
- declare type TAccess = UnwrapNestedRefs$1<IAccess>;
1219
+ declare type TAccess = UnwrapNestedRefs<IAccess>;
1091
1220
  declare const useAccess: () => {
1092
1221
  access: TAccess;
1093
1222
  setAccess: (access: TAccess) => void;
@@ -1104,9 +1233,9 @@ interface IPer extends Record<string, any> {
1104
1233
  buttonMap?: Record<string, boolean>;
1105
1234
  }
1106
1235
  declare type TLogonUserProvide = {
1107
- user: UnwrapNestedRefs<IUser>;
1236
+ user: UnwrapNestedRefs$1<IUser>;
1108
1237
  setUser: (u: IUser) => void;
1109
- per: UnwrapNestedRefs<IPer>;
1238
+ per: UnwrapNestedRefs$1<IPer>;
1110
1239
  setPer: (u: IPer) => void;
1111
1240
  opts: Record<string, any>;
1112
1241
  };
@@ -1214,10 +1343,10 @@ declare const ProGrid: vue.DefineComponent<Partial<ExtractPropTypes<{
1214
1343
  interface IProFormProvideExtra extends Record<string, any> {
1215
1344
  }
1216
1345
  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>>;
1346
+ formState: UnwrapNestedRefs$1<Record<string, any>>;
1347
+ showState: UnwrapNestedRefs$1<Record<string, any>>;
1348
+ readonlyState: UnwrapNestedRefs$1<Record<string, any>>;
1349
+ disableState: UnwrapNestedRefs$1<Record<string, any>>;
1221
1350
  readonly: Ref<boolean | undefined>;
1222
1351
  elementMap?: TElementMap;
1223
1352
  formElementMap?: TElementMap;
@@ -1333,6 +1462,13 @@ declare const proFormProps: () => {
1333
1462
  type: PropType<(...e: any[]) => boolean | undefined>;
1334
1463
  default: undefined;
1335
1464
  };
1465
+ /**
1466
+ * onFinish 中加入额外的值
1467
+ */
1468
+ onGetExtraValues: {
1469
+ type: PropType<(opts?: any) => Record<string, any> | undefined>;
1470
+ default: undefined;
1471
+ };
1336
1472
  };
1337
1473
  declare type ProFormProps = Partial<ExtractPropTypes<ReturnType<typeof proFormProps>>> & ProBaseProps & Omit<ProGridProps, "items"> & {
1338
1474
  onFinish?: (showValues?: Record<string, any>, values?: Record<string, any>, opts?: Pick<IProFormProvide, "userOpe" | "asyncNum">) => void;
@@ -2499,8 +2635,8 @@ declare const ProShowTree: vue.DefineComponent<{
2499
2635
  }>>, {
2500
2636
  render: Function;
2501
2637
  splitStr: string;
2502
- splitStr2: string;
2503
2638
  multiple: boolean;
2639
+ splitStr2: string;
2504
2640
  }>;
2505
2641
  declare const ProShowDate: vue.DefineComponent<{
2506
2642
  value: {
@@ -2600,7 +2736,7 @@ declare type TLayoutMenu = {
2600
2736
  declare type TLayoutTabMenu = TLayoutMenu & {
2601
2737
  query?: Record<string, any>;
2602
2738
  };
2603
- declare type TLayoutType = "vertical" | "horizontal" | "horizontal-v" | "compose";
2739
+ declare type TLayoutType = "vertical" | "horizontal" | "horizontal-v" | "compose" | "simple";
2604
2740
  interface IProLayoutProvide {
2605
2741
  convertName: (route: RouteLocationNormalizedLoaded) => string;
2606
2742
  convertValue: (menu: TLayoutTabMenu) => string;
@@ -2611,7 +2747,7 @@ interface IProLayoutProvide {
2611
2747
  tabs: Ref<TLayoutTabMenu[]>;
2612
2748
  showTabs: Ref<boolean>;
2613
2749
  closeTab: (value: string) => void;
2614
- refreshRef: Ref<UnwrapRef<boolean>>;
2750
+ refreshRef: Ref<UnwrapRef$1<boolean>>;
2615
2751
  refresh: (item?: TLayoutMenu) => void;
2616
2752
  }
2617
2753
  declare const useProLayout: () => IProLayoutProvide;
@@ -2751,6 +2887,15 @@ declare const layoutProps: () => {
2751
2887
  }>>>;
2752
2888
  default: undefined;
2753
2889
  };
2890
+ drawerMenuVisible: {
2891
+ type: BooleanConstructor;
2892
+ };
2893
+ drawerProps: {
2894
+ type: ObjectConstructor;
2895
+ };
2896
+ drawerMenuProps: {
2897
+ type: ObjectConstructor;
2898
+ };
2754
2899
  /**************************** menu相关 *******************************/
2755
2900
  menus: {
2756
2901
  type: PropType<TLayoutMenu[]>;
@@ -2892,6 +3037,15 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
2892
3037
  }>>>;
2893
3038
  default: undefined;
2894
3039
  };
3040
+ drawerMenuVisible: {
3041
+ type: BooleanConstructor;
3042
+ };
3043
+ drawerProps: {
3044
+ type: ObjectConstructor;
3045
+ };
3046
+ drawerMenuProps: {
3047
+ type: ObjectConstructor;
3048
+ };
2895
3049
  /**************************** menu相关 *******************************/
2896
3050
  menus: {
2897
3051
  type: PropType<TLayoutMenu[]>;
@@ -3031,6 +3185,15 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
3031
3185
  }>>>;
3032
3186
  default: undefined;
3033
3187
  };
3188
+ drawerMenuVisible: {
3189
+ type: BooleanConstructor;
3190
+ };
3191
+ drawerProps: {
3192
+ type: ObjectConstructor;
3193
+ };
3194
+ drawerMenuProps: {
3195
+ type: ObjectConstructor;
3196
+ };
3034
3197
  /**************************** menu相关 *******************************/
3035
3198
  menus: {
3036
3199
  type: PropType<TLayoutMenu[]>;
@@ -3263,7 +3426,7 @@ declare const proCurdProps: () => {
3263
3426
  declare type CurdProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdProps>>> & ProBaseProps;
3264
3427
  declare const CurdMethods: string[];
3265
3428
  declare type ProCurdProps = CurdProps & Omit<ProModuleProps, "state" | "requests"> & {
3266
- curdState?: UnwrapNestedRefs<ICurdState>;
3429
+ curdState?: UnwrapNestedRefs$1<ICurdState>;
3267
3430
  };
3268
3431
  declare const ProCurd: vue.DefineComponent<ProCurdProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProCurdProps>, {}>;
3269
3432
  declare const useCurdCommon: () => {
@@ -3278,7 +3441,7 @@ interface IProCurdProvide {
3278
3441
  elementMap: TElementMap;
3279
3442
  formElementMap: TElementMap;
3280
3443
  rowKey: string;
3281
- curdState: UnwrapNestedRefs<ICurdState>;
3444
+ curdState: UnwrapNestedRefs$1<ICurdState>;
3282
3445
  formColumns: Ref<TColumns>;
3283
3446
  descColumns: Ref<TColumns>;
3284
3447
  tableColumns: Ref<TColumns>;
@@ -3776,4 +3939,4 @@ declare const ProAppConfigDrawer: vue.DefineComponent<ProAppConfigDrawerProps, {
3776
3939
  [x: string]: any;
3777
3940
  }>;
3778
3941
 
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 };
3942
+ export { AddButton, AppConfig, BooleanObjType, BooleanRulesObjType, ColumnSetting, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, DEVICE_MODES, 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, TDeviceMode, 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, getDeviceMode, 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, useResponsive, useTheme };