@dt-frames/ui 2.0.2 → 2.0.4
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/es/assets/locales/en.ts +1 -1
- package/es/components/container/index.d.ts +4 -3
- package/es/components/container/index.js +24 -22
- package/es/components/container/src/slot-container.d.ts +5 -3
- package/es/components/curd/index.js +261 -229
- package/es/components/curd/src/components/Curd.d.ts +126 -331
- package/es/components/curd/src/props.d.ts +14 -15
- package/es/components/drawer/index.d.ts +3 -5
- package/es/components/drawer/index.js +55 -54
- package/es/components/drawer/src/components/DrawerHeader.d.ts +1 -3
- package/es/components/drawer/src/index.d.ts +4 -7
- package/es/components/form/index.d.ts +213 -361
- package/es/components/form/index.js +210 -163
- package/es/components/form/index.less +206 -8
- package/es/components/form/src/components/FormButtons.d.ts +3 -3
- package/es/components/form/src/components/FormItem.d.ts +152 -304
- package/es/components/form/src/components/formIcon.d.ts +4 -4
- package/es/components/form/src/components/formInputUseDialog.d.ts +3 -3
- package/es/components/form/src/enums/index.d.ts +1 -1
- package/es/components/form/src/index.d.ts +199 -347
- package/es/components/form/src/props.d.ts +8 -12
- package/es/components/form/src/types/form.type.d.ts +2 -2
- package/es/components/icons/index.d.ts +496 -2
- package/es/components/icons/index.less +5 -0
- package/es/components/icons/src/pick-icon.d.ts +5 -5
- package/es/components/modal/index.js +76 -74
- package/es/components/modal/index.less +10 -0
- package/es/components/modal/src/components/Modal.d.ts +108 -215
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +116 -223
- package/es/components/source/hooks/useSource.d.ts +14 -0
- package/es/components/source/index.js +66 -27
- package/es/components/source/types/source.type.d.ts +4 -8
- package/es/components/table/index.js +452 -820
- package/es/components/table/index.less +50 -14
- package/es/components/table/src/components/TableAction.d.ts +1 -1
- package/es/components/table/src/components/TableHeader.d.ts +109 -216
- package/es/components/table/src/components/TableRender.d.ts +13 -9
- package/es/components/table/src/components/tableSetting/Download.d.ts +107 -214
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +107 -214
- package/es/components/table/src/components/tableSetting/index.d.ts +107 -214
- package/es/components/table/src/hooks/useDataSource.d.ts +1 -2
- package/es/components/table/src/hooks/usePagination.d.ts +3 -118
- package/es/components/table/src/index.d.ts +99 -435
- package/es/components/table/src/props.d.ts +19 -74
- package/es/components/table/src/types/actions.type.d.ts +1 -2
- package/es/components/table/src/types/table.type.d.ts +13 -8
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -3240
- package/es/theme/index.js +688 -453
- package/es/theme/index.less +150 -0
- package/es/theme/src/components/header/components/logo.d.ts +0 -1
- package/es/theme/src/components/header/components/notify.d.ts +4 -3
- package/es/theme/src/components/header/components/setting-theme.d.ts +2 -1
- package/es/theme/src/components/header/components/user-info.d.ts +4 -3
- package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
- package/es/theme/src/components/header/index.d.ts +8 -7
- package/es/theme/src/components/header/multiple-header.d.ts +22 -25
- package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
- package/es/theme/src/components/sider/index.d.ts +147 -3
- package/es/theme/src/components/sider/mix-sider.d.ts +146 -0
- package/es/theme/src/enums/theme.enum.d.ts +2 -1
- package/es/theme/src/hooks/useMenu.d.ts +4 -2
- package/es/theme/src/index.d.ts +166 -23
- package/es/theme/src/stores/theme.store.d.ts +3 -0
- package/es/theme/src/types/theme.type.d.ts +2 -1
- package/package.json +3 -4
- package/vite.config.ts +0 -27
|
@@ -387,220 +387,113 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
387
387
|
handleSave: () => void;
|
|
388
388
|
handleCancel: (e?: Event) => Promise<void>;
|
|
389
389
|
readonly omit: any;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
};
|
|
498
|
-
destroyOnClose: {
|
|
499
|
-
type: BooleanConstructor;
|
|
500
|
-
};
|
|
501
|
-
scrollTop: {
|
|
502
|
-
type: BooleanConstructor;
|
|
503
|
-
default: boolean;
|
|
504
|
-
};
|
|
505
|
-
height: {
|
|
506
|
-
type: NumberConstructor;
|
|
507
|
-
};
|
|
508
|
-
minHeight: {
|
|
509
|
-
type: NumberConstructor;
|
|
510
|
-
};
|
|
511
|
-
width: {
|
|
512
|
-
type: PropType<String | Number>;
|
|
513
|
-
};
|
|
514
|
-
draggable: {
|
|
515
|
-
type: BooleanConstructor;
|
|
516
|
-
default: boolean;
|
|
517
|
-
};
|
|
518
|
-
defaultFullscreen: {
|
|
519
|
-
type: BooleanConstructor;
|
|
520
|
-
};
|
|
521
|
-
canFullscreen: {
|
|
522
|
-
type: BooleanConstructor;
|
|
523
|
-
default: boolean;
|
|
524
|
-
};
|
|
525
|
-
title: {
|
|
526
|
-
type: PropType<String | import("vue").ComputedRef<String>>;
|
|
527
|
-
};
|
|
528
|
-
loading: {
|
|
529
|
-
type: BooleanConstructor;
|
|
530
|
-
default: boolean;
|
|
531
|
-
};
|
|
532
|
-
loadingTip: {
|
|
533
|
-
type: StringConstructor;
|
|
534
|
-
default: string;
|
|
535
|
-
};
|
|
536
|
-
useWrapper: {
|
|
537
|
-
type: BooleanConstructor;
|
|
538
|
-
default: boolean;
|
|
539
|
-
};
|
|
540
|
-
wrapClassName: {
|
|
541
|
-
type: StringConstructor;
|
|
542
|
-
};
|
|
543
|
-
zIndex: {
|
|
544
|
-
type: NumberConstructor;
|
|
545
|
-
};
|
|
546
|
-
centered: {
|
|
547
|
-
type: BooleanConstructor;
|
|
548
|
-
};
|
|
549
|
-
showOkBtn: {
|
|
550
|
-
type: BooleanConstructor;
|
|
551
|
-
default: boolean;
|
|
552
|
-
};
|
|
553
|
-
showCancelBtn: {
|
|
554
|
-
type: BooleanConstructor;
|
|
555
|
-
default: boolean;
|
|
556
|
-
};
|
|
557
|
-
okText: {
|
|
558
|
-
type: StringConstructor;
|
|
559
|
-
};
|
|
560
|
-
cancelText: {
|
|
561
|
-
type: StringConstructor;
|
|
562
|
-
};
|
|
563
|
-
mask: {
|
|
564
|
-
type: BooleanConstructor;
|
|
565
|
-
default: boolean;
|
|
566
|
-
};
|
|
567
|
-
maskClosable: {
|
|
568
|
-
type: BooleanConstructor;
|
|
569
|
-
default: boolean;
|
|
570
|
-
};
|
|
571
|
-
keyboard: {
|
|
572
|
-
type: BooleanConstructor;
|
|
573
|
-
default: boolean;
|
|
574
|
-
};
|
|
575
|
-
maskStyle: PropType<import("vue").CSSProperties>;
|
|
576
|
-
footer: {
|
|
577
|
-
type: PropType<import("../../../../form/src/types/form.type").ButtonProps[]>;
|
|
578
|
-
};
|
|
579
|
-
bodyStyle: PropType<import("vue").CSSProperties>;
|
|
580
|
-
wrapperProps: ObjectConstructor;
|
|
581
|
-
getContainer: PropType<() => any>;
|
|
582
|
-
closeFunc: PropType<() => Promise<boolean>>;
|
|
583
|
-
afterClose: FunctionConstructor;
|
|
584
|
-
}>> & {
|
|
585
|
-
onCancel?: (...args: any[]) => any;
|
|
586
|
-
}, {
|
|
587
|
-
visible: boolean;
|
|
588
|
-
closable: boolean;
|
|
589
|
-
destroyOnClose: boolean;
|
|
590
|
-
scrollTop: boolean;
|
|
591
|
-
draggable: boolean;
|
|
592
|
-
defaultFullscreen: boolean;
|
|
593
|
-
canFullscreen: boolean;
|
|
594
|
-
loading: boolean;
|
|
595
|
-
loadingTip: string;
|
|
596
|
-
useWrapper: boolean;
|
|
597
|
-
centered: boolean;
|
|
598
|
-
showOkBtn: boolean;
|
|
599
|
-
showCancelBtn: boolean;
|
|
600
|
-
mask: boolean;
|
|
601
|
-
maskClosable: boolean;
|
|
602
|
-
keyboard: boolean;
|
|
603
|
-
}>;
|
|
390
|
+
Modal: {
|
|
391
|
+
name: string;
|
|
392
|
+
inheritAttrs: boolean;
|
|
393
|
+
props: {
|
|
394
|
+
t: {
|
|
395
|
+
type: StringConstructor;
|
|
396
|
+
};
|
|
397
|
+
visible: {
|
|
398
|
+
type: BooleanConstructor;
|
|
399
|
+
};
|
|
400
|
+
closable: {
|
|
401
|
+
type: BooleanConstructor;
|
|
402
|
+
default: boolean;
|
|
403
|
+
};
|
|
404
|
+
destroyOnClose: {
|
|
405
|
+
type: BooleanConstructor;
|
|
406
|
+
};
|
|
407
|
+
scrollTop: {
|
|
408
|
+
type: BooleanConstructor;
|
|
409
|
+
default: boolean;
|
|
410
|
+
};
|
|
411
|
+
height: {
|
|
412
|
+
type: NumberConstructor;
|
|
413
|
+
};
|
|
414
|
+
minHeight: {
|
|
415
|
+
type: NumberConstructor;
|
|
416
|
+
};
|
|
417
|
+
width: {
|
|
418
|
+
type: PropType<String | Number>;
|
|
419
|
+
};
|
|
420
|
+
draggable: {
|
|
421
|
+
type: BooleanConstructor;
|
|
422
|
+
default: boolean;
|
|
423
|
+
};
|
|
424
|
+
defaultFullscreen: {
|
|
425
|
+
type: BooleanConstructor;
|
|
426
|
+
};
|
|
427
|
+
canFullscreen: {
|
|
428
|
+
type: BooleanConstructor;
|
|
429
|
+
default: boolean;
|
|
430
|
+
};
|
|
431
|
+
title: {
|
|
432
|
+
type: PropType<String | import("vue").ComputedRef<String>>;
|
|
433
|
+
};
|
|
434
|
+
loading: {
|
|
435
|
+
type: BooleanConstructor;
|
|
436
|
+
default: boolean;
|
|
437
|
+
};
|
|
438
|
+
loadingTip: {
|
|
439
|
+
type: StringConstructor;
|
|
440
|
+
default: string;
|
|
441
|
+
};
|
|
442
|
+
useWrapper: {
|
|
443
|
+
type: BooleanConstructor;
|
|
444
|
+
default: boolean;
|
|
445
|
+
};
|
|
446
|
+
wrapClassName: {
|
|
447
|
+
type: StringConstructor;
|
|
448
|
+
};
|
|
449
|
+
zIndex: {
|
|
450
|
+
type: NumberConstructor;
|
|
451
|
+
};
|
|
452
|
+
centered: {
|
|
453
|
+
type: BooleanConstructor;
|
|
454
|
+
};
|
|
455
|
+
showOkBtn: {
|
|
456
|
+
type: BooleanConstructor;
|
|
457
|
+
default: boolean;
|
|
458
|
+
};
|
|
459
|
+
showCancelBtn: {
|
|
460
|
+
type: BooleanConstructor;
|
|
461
|
+
default: boolean;
|
|
462
|
+
};
|
|
463
|
+
okText: {
|
|
464
|
+
type: StringConstructor;
|
|
465
|
+
};
|
|
466
|
+
cancelText: {
|
|
467
|
+
type: StringConstructor;
|
|
468
|
+
};
|
|
469
|
+
mask: {
|
|
470
|
+
type: BooleanConstructor;
|
|
471
|
+
default: boolean;
|
|
472
|
+
};
|
|
473
|
+
maskClosable: {
|
|
474
|
+
type: BooleanConstructor;
|
|
475
|
+
default: boolean;
|
|
476
|
+
};
|
|
477
|
+
keyboard: {
|
|
478
|
+
type: BooleanConstructor;
|
|
479
|
+
default: boolean;
|
|
480
|
+
};
|
|
481
|
+
maskStyle: PropType<import("vue").CSSProperties>;
|
|
482
|
+
footer: {
|
|
483
|
+
type: PropType<import("../../../../form/src/types/form.type").ButtonProps[]>;
|
|
484
|
+
};
|
|
485
|
+
bodyStyle: PropType<import("vue").CSSProperties>;
|
|
486
|
+
wrapperProps: ObjectConstructor;
|
|
487
|
+
getContainer: PropType<() => any>;
|
|
488
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
489
|
+
afterClose: FunctionConstructor;
|
|
490
|
+
};
|
|
491
|
+
emits: string[];
|
|
492
|
+
setup(props: any, { slots, emit }: {
|
|
493
|
+
slots: any;
|
|
494
|
+
emit: any;
|
|
495
|
+
}): () => JSX.Element;
|
|
496
|
+
};
|
|
604
497
|
CloseIcon: import("vue").DefineComponent<{
|
|
605
498
|
canFullscreen: {
|
|
606
499
|
type: BooleanConstructor;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { BasicTableProps, SorterResult } from "../types/table.type";
|
|
2
|
+
import { BasicTableProps, SorterResult, PaginationProps } from "../types/table.type";
|
|
4
3
|
import { Recordable } from "@dt-frames/core";
|
|
5
4
|
declare type ActionsType = {
|
|
6
5
|
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
@@ -1,122 +1,7 @@
|
|
|
1
|
-
import { PaginationProps } from "ant-design-vue/es/pagination";
|
|
2
1
|
import { ComputedRef } from "vue";
|
|
3
|
-
import { BasicTableProps } from "../types/table.type";
|
|
2
|
+
import { BasicTableProps, PaginationProps } from "../types/table.type";
|
|
4
3
|
export declare function usePagination(props: ComputedRef<BasicTableProps>): {
|
|
5
|
-
getPaginationInfo: ComputedRef<boolean |
|
|
6
|
-
total: NumberConstructor;
|
|
7
|
-
defaultCurrent: NumberConstructor;
|
|
8
|
-
disabled: {
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
default: any;
|
|
11
|
-
};
|
|
12
|
-
current: NumberConstructor;
|
|
13
|
-
defaultPageSize: NumberConstructor;
|
|
14
|
-
pageSize: NumberConstructor;
|
|
15
|
-
hideOnSinglePage: {
|
|
16
|
-
type: BooleanConstructor;
|
|
17
|
-
default: any;
|
|
18
|
-
};
|
|
19
|
-
showSizeChanger: {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: any;
|
|
22
|
-
};
|
|
23
|
-
pageSizeOptions: import("vue").PropType<(string | number)[]>;
|
|
24
|
-
buildOptionText: import("vue").PropType<(opt: {
|
|
25
|
-
value: any;
|
|
26
|
-
}) => any>;
|
|
27
|
-
showQuickJumper: {
|
|
28
|
-
type: import("vue").PropType<boolean | {
|
|
29
|
-
goButton?: any;
|
|
30
|
-
}>;
|
|
31
|
-
default: boolean | {
|
|
32
|
-
goButton?: any;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
36
|
-
size: import("vue").PropType<"small" | "default">;
|
|
37
|
-
simple: {
|
|
38
|
-
type: BooleanConstructor;
|
|
39
|
-
default: any;
|
|
40
|
-
};
|
|
41
|
-
locale: ObjectConstructor;
|
|
42
|
-
prefixCls: StringConstructor;
|
|
43
|
-
selectPrefixCls: StringConstructor;
|
|
44
|
-
totalBoundaryShowSizeChanger: NumberConstructor;
|
|
45
|
-
selectComponentClass: StringConstructor;
|
|
46
|
-
itemRender: import("vue").PropType<(opt: {
|
|
47
|
-
page: number;
|
|
48
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
49
|
-
originalElement: any;
|
|
50
|
-
}) => any>;
|
|
51
|
-
role: StringConstructor;
|
|
52
|
-
responsive: BooleanConstructor;
|
|
53
|
-
showLessItems: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
default: any;
|
|
56
|
-
};
|
|
57
|
-
onChange: import("vue").PropType<(page: number, pageSize: number) => void>;
|
|
58
|
-
onShowSizeChange: import("vue").PropType<(current: number, size: number) => void>;
|
|
59
|
-
'onUpdate:current': import("vue").PropType<(current: number) => void>;
|
|
60
|
-
'onUpdate:pageSize': import("vue").PropType<(size: number) => void>;
|
|
61
|
-
}>>>;
|
|
4
|
+
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
62
5
|
setPagination: (info: Partial<PaginationProps>) => void;
|
|
63
|
-
getPagination: () => boolean |
|
|
64
|
-
total: NumberConstructor;
|
|
65
|
-
defaultCurrent: NumberConstructor;
|
|
66
|
-
disabled: {
|
|
67
|
-
type: BooleanConstructor;
|
|
68
|
-
default: any;
|
|
69
|
-
};
|
|
70
|
-
current: NumberConstructor;
|
|
71
|
-
defaultPageSize: NumberConstructor;
|
|
72
|
-
pageSize: NumberConstructor;
|
|
73
|
-
hideOnSinglePage: {
|
|
74
|
-
type: BooleanConstructor;
|
|
75
|
-
default: any;
|
|
76
|
-
};
|
|
77
|
-
showSizeChanger: {
|
|
78
|
-
type: BooleanConstructor;
|
|
79
|
-
default: any;
|
|
80
|
-
};
|
|
81
|
-
pageSizeOptions: import("vue").PropType<(string | number)[]>;
|
|
82
|
-
buildOptionText: import("vue").PropType<(opt: {
|
|
83
|
-
value: any;
|
|
84
|
-
}) => any>;
|
|
85
|
-
showQuickJumper: {
|
|
86
|
-
type: import("vue").PropType<boolean | {
|
|
87
|
-
goButton?: any;
|
|
88
|
-
}>;
|
|
89
|
-
default: boolean | {
|
|
90
|
-
goButton?: any;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
94
|
-
size: import("vue").PropType<"small" | "default">;
|
|
95
|
-
simple: {
|
|
96
|
-
type: BooleanConstructor;
|
|
97
|
-
default: any;
|
|
98
|
-
};
|
|
99
|
-
locale: ObjectConstructor;
|
|
100
|
-
prefixCls: StringConstructor;
|
|
101
|
-
selectPrefixCls: StringConstructor;
|
|
102
|
-
totalBoundaryShowSizeChanger: NumberConstructor;
|
|
103
|
-
selectComponentClass: StringConstructor;
|
|
104
|
-
itemRender: import("vue").PropType<(opt: {
|
|
105
|
-
page: number;
|
|
106
|
-
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
107
|
-
originalElement: any;
|
|
108
|
-
}) => any>;
|
|
109
|
-
role: StringConstructor;
|
|
110
|
-
responsive: BooleanConstructor;
|
|
111
|
-
showLessItems: {
|
|
112
|
-
type: BooleanConstructor;
|
|
113
|
-
default: any;
|
|
114
|
-
};
|
|
115
|
-
onChange: import("vue").PropType<(page: number, pageSize: number) => void>;
|
|
116
|
-
onShowSizeChange: import("vue").PropType<(current: number, size: number) => void>;
|
|
117
|
-
'onUpdate:current': import("vue").PropType<(current: number) => void>;
|
|
118
|
-
'onUpdate:pageSize': import("vue").PropType<(size: number) => void>;
|
|
119
|
-
}>>;
|
|
120
|
-
getShowPagination: () => boolean;
|
|
121
|
-
setShowPagination: (flag: boolean) => void;
|
|
6
|
+
getPagination: () => boolean | PaginationProps;
|
|
122
7
|
};
|