@vue-start/pro 0.5.5 → 0.5.7

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,63 +1,15 @@
1
1
  /// <reference types="lodash" />
2
2
  import * as vue from 'vue';
3
- import { ExtractPropTypes, PropType, VNode, App, Ref as Ref$1 } from 'vue';
3
+ import { VNode, ExtractPropTypes, PropType, App, UnwrapNestedRefs as UnwrapNestedRefs$1, Ref as Ref$1 } from 'vue';
4
4
  import * as _vue_reactivity from '@vue/reactivity';
5
5
  import { UnwrapNestedRefs, Ref, ComputedRef } from '@vue/reactivity';
6
+ import { Subject } from 'rxjs';
7
+ import { IRequestActor } from '@vue-start/request';
6
8
  import * as _vue_start_store from '@vue-start/store';
7
9
  import { TUpdater } from '@vue-start/store';
8
- import { IRequestActor } from '@vue-start/request';
9
- import { Subject } from 'rxjs';
10
+ import { TConvert } from '@vue-start/hooks';
10
11
  import * as lodash from 'lodash';
11
12
 
12
- declare const proGridProps: () => {
13
- row: {
14
- type: PropType<Record<string, any>>;
15
- default: undefined;
16
- };
17
- col: {
18
- type: PropType<Record<string, any>>;
19
- };
20
- items: {
21
- type: PropType<{
22
- vNode: VNode;
23
- rowKey?: string | number | undefined;
24
- col?: Record<string, any> | undefined;
25
- }[]>;
26
- };
27
- };
28
- declare type ProGridProps = Partial<ExtractPropTypes<ReturnType<typeof proGridProps>>>;
29
- declare const ProGrid: vue.DefineComponent<Partial<ExtractPropTypes<{
30
- row: {
31
- type: PropType<Record<string, any>>;
32
- default: undefined;
33
- };
34
- col: {
35
- type: PropType<Record<string, any>>;
36
- };
37
- items: {
38
- type: PropType<{
39
- vNode: VNode;
40
- rowKey?: string | number | undefined;
41
- col?: Record<string, any> | undefined;
42
- }[]>;
43
- };
44
- }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
45
- row: {
46
- type: PropType<Record<string, any>>;
47
- default: undefined;
48
- };
49
- col: {
50
- type: PropType<Record<string, any>>;
51
- };
52
- items: {
53
- type: PropType<{
54
- vNode: VNode;
55
- rowKey?: string | number | undefined;
56
- col?: Record<string, any> | undefined;
57
- }[]>;
58
- };
59
- }>>>, {}>;
60
-
61
13
  declare type TDefaultValueType = "text" | "textarea" | "password" | "digit" | "date" | "dateRange" | "time" | "timeRange" | "select" | "treeSelect" | "checkbox" | "radio" | "slider" | "switch" | "rate" | "cascader";
62
14
  declare type TValueType = TDefaultValueType | string;
63
15
  declare type TOption = {
@@ -401,6 +353,9 @@ declare const proBasePropsFn: () => {
401
353
  declare type ProBaseProps = Partial<ExtractPropTypes<ReturnType<typeof proBasePropsFn>>>;
402
354
  declare const proBaseProps: ProBaseProps;
403
355
  declare type ProDispatchRequestType = (actorName: string, params?: IRequestActor["req"], extra?: IRequestActor["extra"]) => IRequestActor | undefined;
356
+ declare type TFormExtraMap = {
357
+ rulePrefixMap?: Record<string, string>;
358
+ };
404
359
  interface IProConfigProvide {
405
360
  /**
406
361
  * 组件集
@@ -410,6 +365,7 @@ interface IProConfigProvide {
410
365
  * form组件集(使用FormItem包裹的组件集合)
411
366
  */
412
367
  formElementMap?: TElementMap;
368
+ formExtraMap?: TFormExtraMap;
413
369
  /**
414
370
  * 注册的全局状态
415
371
  */
@@ -439,6 +395,9 @@ declare const proConfigProps: () => {
439
395
  formElementMap: {
440
396
  type: PropType<TElementMap>;
441
397
  };
398
+ formExtraMap: {
399
+ type: PropType<TFormExtraMap>;
400
+ };
442
401
  registerStores: {
443
402
  type: PropType<TRegisterStore[]>;
444
403
  };
@@ -463,6 +422,9 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
463
422
  formElementMap: {
464
423
  type: PropType<TElementMap>;
465
424
  };
425
+ formExtraMap: {
426
+ type: PropType<TFormExtraMap>;
427
+ };
466
428
  registerStores: {
467
429
  type: PropType<TRegisterStore[]>;
468
430
  };
@@ -481,6 +443,9 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
481
443
  formElementMap: {
482
444
  type: PropType<TElementMap>;
483
445
  };
446
+ formExtraMap: {
447
+ type: PropType<TFormExtraMap>;
448
+ };
484
449
  registerStores: {
485
450
  type: PropType<TRegisterStore[]>;
486
451
  };
@@ -502,27 +467,118 @@ declare const createProConfig: (config?: ProConfigProps) => (app: App) => void;
502
467
  interface IAccess extends Record<string, any> {
503
468
  token?: string;
504
469
  }
505
- declare type TAccess = UnwrapNestedRefs<IAccess>;
506
- declare const useAccess: () => TAccess;
470
+ declare type TAccess = UnwrapNestedRefs$1<IAccess>;
471
+ declare const useAccess: () => {
472
+ access: TAccess;
473
+ setAccess: (access: TAccess) => void;
474
+ delAccess: () => void;
475
+ };
507
476
  declare const useAccessMgr: () => readonly [any, (stateOrUpdater: _vue_start_store.TUpdater<undefined> | undefined) => void, () => void];
508
- declare const MustLogon: vue.DefineComponent<unknown, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
509
- [key: string]: any;
510
- }>[] | null | undefined, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
477
+
511
478
  declare const LogonUserKey: unique symbol;
512
479
  interface IUser extends Record<string, any> {
513
480
  id?: string | number;
514
481
  }
482
+ interface IPer extends Record<string, any> {
483
+ menus?: any[];
484
+ buttonMap?: Record<string, boolean>;
485
+ }
515
486
  declare type TLogonUserProvide = {
516
487
  user: UnwrapNestedRefs<IUser>;
517
488
  setUser: (u: IUser) => void;
518
- per: UnwrapNestedRefs<Record<string, any>>;
519
- setPer: (u: IUser) => void;
489
+ per: UnwrapNestedRefs<IPer>;
490
+ setPer: (u: IPer) => void;
520
491
  opts: Record<string, any>;
521
492
  };
522
493
  declare const useLogonUser: () => TLogonUserProvide;
523
494
  declare const LogonUser: vue.DefineComponent<unknown, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
524
495
  [key: string]: any;
525
496
  }>[] | undefined, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
497
+ declare const MustLogon: vue.DefineComponent<unknown, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
498
+ [key: string]: any;
499
+ }>[] | null | undefined, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
500
+
501
+ declare const PerSuffix: {
502
+ Add: string;
503
+ Edit: string;
504
+ Delete: string;
505
+ };
506
+ declare const useHasPer: () => (perStr: string | string[], options?: {
507
+ suffix?: boolean;
508
+ }) => boolean;
509
+ declare const permissionProps: () => {
510
+ suffix: {
511
+ type: (StringConstructor | PropType<string[]>)[];
512
+ };
513
+ value: {
514
+ type: (StringConstructor | PropType<string[]>)[];
515
+ };
516
+ };
517
+ declare type PermissionProps = Partial<ExtractPropTypes<ReturnType<typeof permissionProps>>>;
518
+ declare const Permission: vue.DefineComponent<Partial<ExtractPropTypes<{
519
+ suffix: {
520
+ type: (StringConstructor | PropType<string[]>)[];
521
+ };
522
+ value: {
523
+ type: (StringConstructor | PropType<string[]>)[];
524
+ };
525
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
526
+ suffix: {
527
+ type: (StringConstructor | PropType<string[]>)[];
528
+ };
529
+ value: {
530
+ type: (StringConstructor | PropType<string[]>)[];
531
+ };
532
+ }>>>, {}>;
533
+
534
+ declare const proGridProps: () => {
535
+ row: {
536
+ type: PropType<Record<string, any>>;
537
+ default: undefined;
538
+ };
539
+ col: {
540
+ type: PropType<Record<string, any>>;
541
+ };
542
+ items: {
543
+ type: PropType<{
544
+ vNode: VNode;
545
+ rowKey?: string | number | undefined;
546
+ col?: Record<string, any> | undefined;
547
+ }[]>;
548
+ };
549
+ };
550
+ declare type ProGridProps = Partial<ExtractPropTypes<ReturnType<typeof proGridProps>>>;
551
+ declare const ProGrid: vue.DefineComponent<Partial<ExtractPropTypes<{
552
+ row: {
553
+ type: PropType<Record<string, any>>;
554
+ default: undefined;
555
+ };
556
+ col: {
557
+ type: PropType<Record<string, any>>;
558
+ };
559
+ items: {
560
+ type: PropType<{
561
+ vNode: VNode;
562
+ rowKey?: string | number | undefined;
563
+ col?: Record<string, any> | undefined;
564
+ }[]>;
565
+ };
566
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
567
+ row: {
568
+ type: PropType<Record<string, any>>;
569
+ default: undefined;
570
+ };
571
+ col: {
572
+ type: PropType<Record<string, any>>;
573
+ };
574
+ items: {
575
+ type: PropType<{
576
+ vNode: VNode;
577
+ rowKey?: string | number | undefined;
578
+ col?: Record<string, any> | undefined;
579
+ }[]>;
580
+ };
581
+ }>>>, {}>;
526
582
 
527
583
  interface IProFormProvideExtra extends Record<string, any> {
528
584
  }
@@ -630,6 +686,18 @@ declare type ProFormProps = Partial<ExtractPropTypes<ReturnType<typeof proFormPr
630
686
  onFinishFailed?: (errs: any) => void;
631
687
  };
632
688
  declare const ProForm: vue.DefineComponent<ProFormProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProFormProps>, {}>;
689
+ declare const FormRulePrefixMap: {
690
+ text: string;
691
+ digit: string;
692
+ select: string;
693
+ treeSelect: string;
694
+ cascader: string;
695
+ checkbox: string;
696
+ radio: string;
697
+ switch: string;
698
+ date: string;
699
+ time: string;
700
+ };
633
701
 
634
702
  declare enum SearchMode {
635
703
  AUTO = "AUTO",
@@ -868,11 +936,9 @@ declare const ProOperate: vue.DefineComponent<Partial<ExtractPropTypes<{
868
936
  interface IProTableProvideExtra extends Record<string, any> {
869
937
  }
870
938
  interface IProTableProvide extends IProTableProvideExtra {
871
- columns: Ref<TTableColumns>;
872
- originColumns: Ref<TTableColumns>;
873
- state: UnwrapNestedRefs<{
874
- selectIds: (string | number)[];
875
- }>;
939
+ columns: Ref$1<TTableColumns>;
940
+ originColumns: Ref$1<TTableColumns>;
941
+ selectIdsRef: Ref$1<Array<string | number>>;
876
942
  }
877
943
  declare const useProTable: () => IProTableProvide;
878
944
  declare type TTableColumn = {
@@ -964,6 +1030,13 @@ declare const proTableProps: () => {
964
1030
  default: string;
965
1031
  };
966
1032
  popoverProps: ObjectConstructor;
1033
+ useSelectedStatus: {
1034
+ type: BooleanConstructor;
1035
+ default: boolean;
1036
+ };
1037
+ onColumnSelectChange: {
1038
+ type: PropType<(selectIds: (string | number)[]) => void>;
1039
+ };
967
1040
  }>> | undefined;
968
1041
  }>;
969
1042
  };
@@ -1143,8 +1216,469 @@ declare const ProDesc: vue.DefineComponent<ProDescProps, {}, {}, {}, {}, vue.Com
1143
1216
  model?: any;
1144
1217
  }>;
1145
1218
 
1219
+ declare const typographyProps: () => {
1220
+ content: {
1221
+ type: (NumberConstructor | StringConstructor)[];
1222
+ };
1223
+ ellipsis: {
1224
+ type: (BooleanConstructor | PropType<{
1225
+ rows?: number | undefined;
1226
+ num?: number | undefined;
1227
+ }>)[];
1228
+ };
1229
+ popoverProps: ObjectConstructor;
1230
+ };
1231
+ declare type ProTypographyProps = Partial<ExtractPropTypes<ReturnType<typeof typographyProps>>>;
1232
+ declare const ProTypography: vue.DefineComponent<Partial<ExtractPropTypes<{
1233
+ content: {
1234
+ type: (NumberConstructor | StringConstructor)[];
1235
+ };
1236
+ ellipsis: {
1237
+ type: (BooleanConstructor | PropType<{
1238
+ rows?: number | undefined;
1239
+ num?: number | undefined;
1240
+ }>)[];
1241
+ };
1242
+ popoverProps: ObjectConstructor;
1243
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
1244
+ content: {
1245
+ type: (NumberConstructor | StringConstructor)[];
1246
+ };
1247
+ ellipsis: {
1248
+ type: (BooleanConstructor | PropType<{
1249
+ rows?: number | undefined;
1250
+ num?: number | undefined;
1251
+ }>)[];
1252
+ };
1253
+ popoverProps: ObjectConstructor;
1254
+ }>>>, {}>;
1255
+
1256
+ declare const ProShowText: vue.DefineComponent<{
1257
+ value: {
1258
+ type: (NumberConstructor | StringConstructor)[];
1259
+ };
1260
+ showProps: {
1261
+ type: PropType<Partial<vue.ExtractPropTypes<{
1262
+ content: {
1263
+ type: (NumberConstructor | StringConstructor)[];
1264
+ };
1265
+ ellipsis: {
1266
+ type: (BooleanConstructor | PropType<{
1267
+ rows?: number | undefined;
1268
+ num?: number | undefined;
1269
+ }>)[];
1270
+ };
1271
+ popoverProps: ObjectConstructor;
1272
+ }>>>;
1273
+ };
1274
+ convert: {
1275
+ type: PropType<TConvert>;
1276
+ };
1277
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1278
+ value: {
1279
+ type: (NumberConstructor | StringConstructor)[];
1280
+ };
1281
+ showProps: {
1282
+ type: PropType<Partial<vue.ExtractPropTypes<{
1283
+ content: {
1284
+ type: (NumberConstructor | StringConstructor)[];
1285
+ };
1286
+ ellipsis: {
1287
+ type: (BooleanConstructor | PropType<{
1288
+ rows?: number | undefined;
1289
+ num?: number | undefined;
1290
+ }>)[];
1291
+ };
1292
+ popoverProps: ObjectConstructor;
1293
+ }>>>;
1294
+ };
1295
+ convert: {
1296
+ type: PropType<TConvert>;
1297
+ };
1298
+ }>>, {}>;
1299
+ declare const ProShowDigit: vue.DefineComponent<{
1300
+ decimalFixed: {
1301
+ type: NumberConstructor;
1302
+ default: number;
1303
+ };
1304
+ thousandDivision: {
1305
+ type: BooleanConstructor;
1306
+ default: boolean;
1307
+ };
1308
+ value: {
1309
+ type: (NumberConstructor | StringConstructor)[];
1310
+ };
1311
+ showProps: {
1312
+ type: PropType<Partial<vue.ExtractPropTypes<{
1313
+ content: {
1314
+ type: (NumberConstructor | StringConstructor)[];
1315
+ };
1316
+ ellipsis: {
1317
+ type: (BooleanConstructor | PropType<{
1318
+ rows?: number | undefined;
1319
+ num?: number | undefined;
1320
+ }>)[];
1321
+ };
1322
+ popoverProps: ObjectConstructor;
1323
+ }>>>;
1324
+ };
1325
+ convert: {
1326
+ type: PropType<TConvert>;
1327
+ };
1328
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1329
+ decimalFixed: {
1330
+ type: NumberConstructor;
1331
+ default: number;
1332
+ };
1333
+ thousandDivision: {
1334
+ type: BooleanConstructor;
1335
+ default: boolean;
1336
+ };
1337
+ value: {
1338
+ type: (NumberConstructor | StringConstructor)[];
1339
+ };
1340
+ showProps: {
1341
+ type: PropType<Partial<vue.ExtractPropTypes<{
1342
+ content: {
1343
+ type: (NumberConstructor | StringConstructor)[];
1344
+ };
1345
+ ellipsis: {
1346
+ type: (BooleanConstructor | PropType<{
1347
+ rows?: number | undefined;
1348
+ num?: number | undefined;
1349
+ }>)[];
1350
+ };
1351
+ popoverProps: ObjectConstructor;
1352
+ }>>>;
1353
+ };
1354
+ convert: {
1355
+ type: PropType<TConvert>;
1356
+ };
1357
+ }>>, {
1358
+ decimalFixed: number;
1359
+ thousandDivision: boolean;
1360
+ }>;
1361
+ declare const ProShowOptions: vue.DefineComponent<{
1362
+ value: {
1363
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1364
+ };
1365
+ options: PropType<TOptions>;
1366
+ splitStr: {
1367
+ type: StringConstructor;
1368
+ default: string;
1369
+ };
1370
+ colorMap: {
1371
+ type: ObjectConstructor;
1372
+ };
1373
+ showProps: {
1374
+ type: PropType<Partial<vue.ExtractPropTypes<{
1375
+ content: {
1376
+ type: (NumberConstructor | StringConstructor)[];
1377
+ };
1378
+ ellipsis: {
1379
+ type: (BooleanConstructor | PropType<{
1380
+ rows?: number | undefined;
1381
+ num?: number | undefined;
1382
+ }>)[];
1383
+ };
1384
+ popoverProps: ObjectConstructor;
1385
+ }>>>;
1386
+ };
1387
+ convert: {
1388
+ type: PropType<TConvert>;
1389
+ };
1390
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1391
+ value: {
1392
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1393
+ };
1394
+ options: PropType<TOptions>;
1395
+ splitStr: {
1396
+ type: StringConstructor;
1397
+ default: string;
1398
+ };
1399
+ colorMap: {
1400
+ type: ObjectConstructor;
1401
+ };
1402
+ showProps: {
1403
+ type: PropType<Partial<vue.ExtractPropTypes<{
1404
+ content: {
1405
+ type: (NumberConstructor | StringConstructor)[];
1406
+ };
1407
+ ellipsis: {
1408
+ type: (BooleanConstructor | PropType<{
1409
+ rows?: number | undefined;
1410
+ num?: number | undefined;
1411
+ }>)[];
1412
+ };
1413
+ popoverProps: ObjectConstructor;
1414
+ }>>>;
1415
+ };
1416
+ convert: {
1417
+ type: PropType<TConvert>;
1418
+ };
1419
+ }>>, {
1420
+ splitStr: string;
1421
+ }>;
1422
+ declare const ProShowTree: vue.DefineComponent<{
1423
+ value: {
1424
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1425
+ };
1426
+ splitStr: {
1427
+ type: StringConstructor;
1428
+ default: string;
1429
+ };
1430
+ treeData: PropType<Record<string, any>>;
1431
+ data: PropType<Record<string, any>>;
1432
+ options: PropType<Record<string, any>>;
1433
+ fieldNames: ObjectConstructor;
1434
+ props: ObjectConstructor;
1435
+ showProps: {
1436
+ type: PropType<Partial<vue.ExtractPropTypes<{
1437
+ content: {
1438
+ type: (NumberConstructor | StringConstructor)[];
1439
+ };
1440
+ ellipsis: {
1441
+ type: (BooleanConstructor | PropType<{
1442
+ rows?: number | undefined;
1443
+ num?: number | undefined;
1444
+ }>)[];
1445
+ };
1446
+ popoverProps: ObjectConstructor;
1447
+ }>>>;
1448
+ };
1449
+ convert: {
1450
+ type: PropType<TConvert>;
1451
+ };
1452
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1453
+ value: {
1454
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1455
+ };
1456
+ splitStr: {
1457
+ type: StringConstructor;
1458
+ default: string;
1459
+ };
1460
+ treeData: PropType<Record<string, any>>;
1461
+ data: PropType<Record<string, any>>;
1462
+ options: PropType<Record<string, any>>;
1463
+ fieldNames: ObjectConstructor;
1464
+ props: ObjectConstructor;
1465
+ showProps: {
1466
+ type: PropType<Partial<vue.ExtractPropTypes<{
1467
+ content: {
1468
+ type: (NumberConstructor | StringConstructor)[];
1469
+ };
1470
+ ellipsis: {
1471
+ type: (BooleanConstructor | PropType<{
1472
+ rows?: number | undefined;
1473
+ num?: number | undefined;
1474
+ }>)[];
1475
+ };
1476
+ popoverProps: ObjectConstructor;
1477
+ }>>>;
1478
+ };
1479
+ convert: {
1480
+ type: PropType<TConvert>;
1481
+ };
1482
+ }>>, {
1483
+ splitStr: string;
1484
+ }>;
1485
+ declare const ProShowDate: vue.DefineComponent<{
1486
+ value: {
1487
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1488
+ };
1489
+ splitStr: {
1490
+ type: StringConstructor;
1491
+ default: string;
1492
+ };
1493
+ format: {
1494
+ type: StringConstructor;
1495
+ default: string;
1496
+ };
1497
+ isUnix: {
1498
+ type: BooleanConstructor;
1499
+ default: boolean;
1500
+ };
1501
+ showProps: {
1502
+ type: PropType<Partial<vue.ExtractPropTypes<{
1503
+ content: {
1504
+ type: (NumberConstructor | StringConstructor)[];
1505
+ };
1506
+ ellipsis: {
1507
+ type: (BooleanConstructor | PropType<{
1508
+ rows?: number | undefined;
1509
+ num?: number | undefined;
1510
+ }>)[];
1511
+ };
1512
+ popoverProps: ObjectConstructor;
1513
+ }>>>;
1514
+ };
1515
+ convert: {
1516
+ type: PropType<TConvert>;
1517
+ };
1518
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1519
+ value: {
1520
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1521
+ };
1522
+ splitStr: {
1523
+ type: StringConstructor;
1524
+ default: string;
1525
+ };
1526
+ format: {
1527
+ type: StringConstructor;
1528
+ default: string;
1529
+ };
1530
+ isUnix: {
1531
+ type: BooleanConstructor;
1532
+ default: boolean;
1533
+ };
1534
+ showProps: {
1535
+ type: PropType<Partial<vue.ExtractPropTypes<{
1536
+ content: {
1537
+ type: (NumberConstructor | StringConstructor)[];
1538
+ };
1539
+ ellipsis: {
1540
+ type: (BooleanConstructor | PropType<{
1541
+ rows?: number | undefined;
1542
+ num?: number | undefined;
1543
+ }>)[];
1544
+ };
1545
+ popoverProps: ObjectConstructor;
1546
+ }>>>;
1547
+ };
1548
+ convert: {
1549
+ type: PropType<TConvert>;
1550
+ };
1551
+ }>>, {
1552
+ splitStr: string;
1553
+ format: string;
1554
+ isUnix: boolean;
1555
+ }>;
1556
+
1557
+ declare const ProLayout: vue.DefineComponent<{
1558
+ /**
1559
+ * class名称
1560
+ */
1561
+ clsName: {
1562
+ type: StringConstructor;
1563
+ default: string;
1564
+ };
1565
+ /**
1566
+ * vertical: 上下
1567
+ * horizontal: 左右
1568
+ * compose: 菜单第一级在header中,子级在左侧菜单
1569
+ */
1570
+ layout: {
1571
+ type: PropType<"vertical" | "horizontal" | "compose">;
1572
+ default: string;
1573
+ };
1574
+ findCurrentTopName: {
1575
+ type: FunctionConstructor;
1576
+ };
1577
+ findActiveKey: {
1578
+ type: FunctionConstructor;
1579
+ };
1580
+ /**************************** menu相关 *******************************/
1581
+ menus: {
1582
+ type: PropType<Record<string, any>[]>;
1583
+ };
1584
+ fieldNames: {
1585
+ type: PropType<{
1586
+ children: string;
1587
+ value: string;
1588
+ label: string;
1589
+ }>;
1590
+ default: {
1591
+ children: string;
1592
+ value: string;
1593
+ label: string;
1594
+ };
1595
+ };
1596
+ convertSubMenuProps: {
1597
+ type: FunctionConstructor;
1598
+ };
1599
+ convertMenuItemProps: {
1600
+ type: FunctionConstructor;
1601
+ };
1602
+ onMenuItemClick: {
1603
+ type: FunctionConstructor;
1604
+ };
1605
+ }, () => JSX.Element | null, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1606
+ /**
1607
+ * class名称
1608
+ */
1609
+ clsName: {
1610
+ type: StringConstructor;
1611
+ default: string;
1612
+ };
1613
+ /**
1614
+ * vertical: 上下
1615
+ * horizontal: 左右
1616
+ * compose: 菜单第一级在header中,子级在左侧菜单
1617
+ */
1618
+ layout: {
1619
+ type: PropType<"vertical" | "horizontal" | "compose">;
1620
+ default: string;
1621
+ };
1622
+ findCurrentTopName: {
1623
+ type: FunctionConstructor;
1624
+ };
1625
+ findActiveKey: {
1626
+ type: FunctionConstructor;
1627
+ };
1628
+ /**************************** menu相关 *******************************/
1629
+ menus: {
1630
+ type: PropType<Record<string, any>[]>;
1631
+ };
1632
+ fieldNames: {
1633
+ type: PropType<{
1634
+ children: string;
1635
+ value: string;
1636
+ label: string;
1637
+ }>;
1638
+ default: {
1639
+ children: string;
1640
+ value: string;
1641
+ label: string;
1642
+ };
1643
+ };
1644
+ convertSubMenuProps: {
1645
+ type: FunctionConstructor;
1646
+ };
1647
+ convertMenuItemProps: {
1648
+ type: FunctionConstructor;
1649
+ };
1650
+ onMenuItemClick: {
1651
+ type: FunctionConstructor;
1652
+ };
1653
+ }>>, {
1654
+ clsName: string;
1655
+ fieldNames: {
1656
+ children: string;
1657
+ value: string;
1658
+ label: string;
1659
+ };
1660
+ layout: "vertical" | "horizontal" | "compose";
1661
+ }>;
1662
+
1663
+ declare type TFile = {
1664
+ id: string;
1665
+ name: string;
1666
+ size?: number;
1667
+ };
1668
+ declare const ProUploaderText: vue.DefineComponent<Record<string, any>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Record<string, any>>>, {
1669
+ [x: string]: any;
1670
+ }>;
1671
+ declare const UploadList: vue.DefineComponent<Readonly<vue.ComponentPropsOptions<{
1672
+ [x: string]: unknown;
1673
+ }>>, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, readonly string[] | Readonly<vue.ExtractPropTypes<Readonly<vue.ComponentObjectPropsOptions<{
1674
+ [x: string]: unknown;
1675
+ }>>>>, {
1676
+ [x: number]: string;
1677
+ } | {}>;
1678
+
1146
1679
  /******************************** 组件key ********************************/
1147
1680
  declare const ElementKeys: {
1681
+ TypographyKey: string;
1148
1682
  LoadingKey: string;
1149
1683
  RowKey: string;
1150
1684
  ColKey: string;
@@ -1154,10 +1688,12 @@ declare const ElementKeys: {
1154
1688
  PaginationKey: string;
1155
1689
  PopoverKey: string;
1156
1690
  CheckboxKey: string;
1691
+ MenusKey: string;
1157
1692
  ModalKey: string;
1158
1693
  FormKey: string;
1159
1694
  FormItemKey: string;
1160
1695
  TableKey: string;
1696
+ UploaderKey: string;
1161
1697
  ProFormKey: string;
1162
1698
  ProSearchFormKey: string;
1163
1699
  ProTableKey: string;
@@ -1463,4 +1999,4 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
1463
1999
  */
1464
2000
  declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
1465
2001
 
1466
- export { BooleanObjType, BooleanRulesObjType, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, ElementKeys, FieldNames, FormAction, FormItemProps, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, IUser, InternalNamePath, LogonUser, LogonUserKey, MustLogon, NamePath, PageHeader, PageHeaderProps, PaginationSlotProps, ProBaseProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProSearchForm, ProSearchFormProps, ProTable, ProTableProps, RequestAction, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TCurdActionEvent, TDefaultValueType, TElementMap, TInitialState, TLogonUserProvide, TMeta, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createProConfig, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getFormItemEl, getItemEl, getSignValue, getValidValues, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderElement, renderElements, useAccess, useAccessMgr, useComposeRequestActor, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useGetCompByKey, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModule, useProTable, useReadStore };
2002
+ export { BooleanObjType, BooleanRulesObjType, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, ElementKeys, FieldNames, FormAction, FormItemProps, FormRulePrefixMap, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IPer, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, IUser, InternalNamePath, LogonUser, LogonUserKey, MustLogon, NamePath, PageHeader, PageHeaderProps, PaginationSlotProps, PerSuffix, Permission, PermissionProps, ProBaseProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProLayout, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTypography, ProTypographyProps, ProUploaderText, RequestAction, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TCurdActionEvent, TDefaultValueType, TElementMap, TFile, TFormExtraMap, TInitialState, TLogonUserProvide, TMeta, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, UploadList, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createProConfig, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getFormItemEl, getItemEl, getSignValue, getValidValues, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderElement, renderElements, useAccess, useAccessMgr, useComposeRequestActor, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useGetCompByKey, useHasPer, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModule, useProTable, useReadStore };