@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
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
gap: 12px;
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
.ant-btn{
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ant-btn.ant-btn-lg{
|
|
12
|
+
height: 34px;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
}
|
|
6
15
|
}
|
|
7
16
|
|
|
8
17
|
.dt-table{
|
|
@@ -10,6 +19,13 @@
|
|
|
10
19
|
background-color: #fafafa;
|
|
11
20
|
}
|
|
12
21
|
|
|
22
|
+
.ant-table-empty {
|
|
23
|
+
border-bottom: 1px solid #f0f0f0;
|
|
24
|
+
.ant-table-cell{
|
|
25
|
+
border: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
13
29
|
.dt-pagination{
|
|
14
30
|
margin: 0 !important;
|
|
15
31
|
padding: 10px;
|
|
@@ -55,6 +71,15 @@
|
|
|
55
71
|
line-height: 26px;
|
|
56
72
|
}
|
|
57
73
|
|
|
74
|
+
.ant-pagination-options{
|
|
75
|
+
.ant-select-sm{
|
|
76
|
+
width: auto;
|
|
77
|
+
span{
|
|
78
|
+
line-height: 24px !important;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
58
83
|
.ant-select-sm .ant-select-selector{
|
|
59
84
|
height: 26px !important;
|
|
60
85
|
}
|
|
@@ -72,23 +97,27 @@
|
|
|
72
97
|
border-color: @primary-color;
|
|
73
98
|
color: @primary-color;
|
|
74
99
|
}
|
|
75
|
-
}
|
|
76
100
|
|
|
77
|
-
.ant-
|
|
78
|
-
|
|
79
|
-
|
|
101
|
+
.ant-table-middle{
|
|
102
|
+
.dt-table-setting {
|
|
103
|
+
i{
|
|
104
|
+
font-size: 20px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
80
107
|
}
|
|
81
108
|
}
|
|
82
109
|
|
|
83
|
-
.ant-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
110
|
+
.ant-table{
|
|
111
|
+
.ant-table-cell {
|
|
112
|
+
height: 46px !important;
|
|
113
|
+
line-height: 20px !important;
|
|
114
|
+
font-size: 14px !important;
|
|
115
|
+
padding: 2px 8px !important;
|
|
116
|
+
|
|
117
|
+
i{
|
|
118
|
+
font-size: 22px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
92
121
|
}
|
|
93
122
|
|
|
94
123
|
.ant-table-small{
|
|
@@ -97,6 +126,9 @@
|
|
|
97
126
|
line-height: 16px !important;
|
|
98
127
|
font-size: 12px !important;
|
|
99
128
|
padding: 2px 8px !important;
|
|
129
|
+
i{
|
|
130
|
+
font-size: 18px;
|
|
131
|
+
}
|
|
100
132
|
}
|
|
101
133
|
}
|
|
102
134
|
|
|
@@ -106,6 +138,9 @@
|
|
|
106
138
|
line-height: 20px !important;
|
|
107
139
|
font-size: 13px !important;
|
|
108
140
|
padding: 4px 8px !important;
|
|
141
|
+
i{
|
|
142
|
+
font-size: 18px;
|
|
143
|
+
}
|
|
109
144
|
}
|
|
110
145
|
}
|
|
111
146
|
|
|
@@ -180,4 +215,5 @@
|
|
|
180
215
|
.dt-table-action-btn, .dt-table-action-dropdown{
|
|
181
216
|
font-size: 18px;
|
|
182
217
|
vertical-align: middle;
|
|
183
|
-
|
|
218
|
+
color: @primary-color;
|
|
219
|
+
}
|
|
@@ -6,7 +6,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
toolbar: {
|
|
8
8
|
type: PropType<ButtonType[]>;
|
|
9
|
-
default: any[];
|
|
9
|
+
default: () => any[];
|
|
10
10
|
};
|
|
11
11
|
}, {
|
|
12
12
|
props: any;
|
|
@@ -482,220 +482,113 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
482
482
|
handleSave: () => void;
|
|
483
483
|
handleCancel: (e?: Event) => Promise<void>;
|
|
484
484
|
readonly omit: any;
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
};
|
|
593
|
-
destroyOnClose: {
|
|
594
|
-
type: BooleanConstructor;
|
|
595
|
-
};
|
|
596
|
-
scrollTop: {
|
|
597
|
-
type: BooleanConstructor;
|
|
598
|
-
default: boolean;
|
|
599
|
-
};
|
|
600
|
-
height: {
|
|
601
|
-
type: NumberConstructor;
|
|
602
|
-
};
|
|
603
|
-
minHeight: {
|
|
604
|
-
type: NumberConstructor;
|
|
605
|
-
};
|
|
606
|
-
width: {
|
|
607
|
-
type: PropType<String | Number>;
|
|
608
|
-
};
|
|
609
|
-
draggable: {
|
|
610
|
-
type: BooleanConstructor;
|
|
611
|
-
default: boolean;
|
|
612
|
-
};
|
|
613
|
-
defaultFullscreen: {
|
|
614
|
-
type: BooleanConstructor;
|
|
615
|
-
};
|
|
616
|
-
canFullscreen: {
|
|
617
|
-
type: BooleanConstructor;
|
|
618
|
-
default: boolean;
|
|
619
|
-
};
|
|
620
|
-
title: {
|
|
621
|
-
type: PropType<String | import("vue").ComputedRef<String>>;
|
|
622
|
-
};
|
|
623
|
-
loading: {
|
|
624
|
-
type: BooleanConstructor;
|
|
625
|
-
default: boolean;
|
|
626
|
-
};
|
|
627
|
-
loadingTip: {
|
|
628
|
-
type: StringConstructor;
|
|
629
|
-
default: string;
|
|
630
|
-
};
|
|
631
|
-
useWrapper: {
|
|
632
|
-
type: BooleanConstructor;
|
|
633
|
-
default: boolean;
|
|
634
|
-
};
|
|
635
|
-
wrapClassName: {
|
|
636
|
-
type: StringConstructor;
|
|
637
|
-
};
|
|
638
|
-
zIndex: {
|
|
639
|
-
type: NumberConstructor;
|
|
640
|
-
};
|
|
641
|
-
centered: {
|
|
642
|
-
type: BooleanConstructor;
|
|
643
|
-
};
|
|
644
|
-
showOkBtn: {
|
|
645
|
-
type: BooleanConstructor;
|
|
646
|
-
default: boolean;
|
|
647
|
-
};
|
|
648
|
-
showCancelBtn: {
|
|
649
|
-
type: BooleanConstructor;
|
|
650
|
-
default: boolean;
|
|
651
|
-
};
|
|
652
|
-
okText: {
|
|
653
|
-
type: StringConstructor;
|
|
654
|
-
};
|
|
655
|
-
cancelText: {
|
|
656
|
-
type: StringConstructor;
|
|
657
|
-
};
|
|
658
|
-
mask: {
|
|
659
|
-
type: BooleanConstructor;
|
|
660
|
-
default: boolean;
|
|
661
|
-
};
|
|
662
|
-
maskClosable: {
|
|
663
|
-
type: BooleanConstructor;
|
|
664
|
-
default: boolean;
|
|
665
|
-
};
|
|
666
|
-
keyboard: {
|
|
667
|
-
type: BooleanConstructor;
|
|
668
|
-
default: boolean;
|
|
669
|
-
};
|
|
670
|
-
maskStyle: PropType<import("vue").CSSProperties>;
|
|
671
|
-
footer: {
|
|
672
|
-
type: PropType<import("../../../form/src/types/form.type").ButtonProps[]>;
|
|
673
|
-
};
|
|
674
|
-
bodyStyle: PropType<import("vue").CSSProperties>;
|
|
675
|
-
wrapperProps: ObjectConstructor;
|
|
676
|
-
getContainer: PropType<() => any>;
|
|
677
|
-
closeFunc: PropType<() => Promise<boolean>>;
|
|
678
|
-
afterClose: FunctionConstructor;
|
|
679
|
-
}>> & {
|
|
680
|
-
onCancel?: (...args: any[]) => any;
|
|
681
|
-
}, {
|
|
682
|
-
visible: boolean;
|
|
683
|
-
closable: boolean;
|
|
684
|
-
destroyOnClose: boolean;
|
|
685
|
-
scrollTop: boolean;
|
|
686
|
-
draggable: boolean;
|
|
687
|
-
defaultFullscreen: boolean;
|
|
688
|
-
canFullscreen: boolean;
|
|
689
|
-
loading: boolean;
|
|
690
|
-
loadingTip: string;
|
|
691
|
-
useWrapper: boolean;
|
|
692
|
-
centered: boolean;
|
|
693
|
-
showOkBtn: boolean;
|
|
694
|
-
showCancelBtn: boolean;
|
|
695
|
-
mask: boolean;
|
|
696
|
-
maskClosable: boolean;
|
|
697
|
-
keyboard: boolean;
|
|
698
|
-
}>;
|
|
485
|
+
Modal: {
|
|
486
|
+
name: string;
|
|
487
|
+
inheritAttrs: boolean;
|
|
488
|
+
props: {
|
|
489
|
+
t: {
|
|
490
|
+
type: StringConstructor;
|
|
491
|
+
};
|
|
492
|
+
visible: {
|
|
493
|
+
type: BooleanConstructor;
|
|
494
|
+
};
|
|
495
|
+
closable: {
|
|
496
|
+
type: BooleanConstructor;
|
|
497
|
+
default: boolean;
|
|
498
|
+
};
|
|
499
|
+
destroyOnClose: {
|
|
500
|
+
type: BooleanConstructor;
|
|
501
|
+
};
|
|
502
|
+
scrollTop: {
|
|
503
|
+
type: BooleanConstructor;
|
|
504
|
+
default: boolean;
|
|
505
|
+
};
|
|
506
|
+
height: {
|
|
507
|
+
type: NumberConstructor;
|
|
508
|
+
};
|
|
509
|
+
minHeight: {
|
|
510
|
+
type: NumberConstructor;
|
|
511
|
+
};
|
|
512
|
+
width: {
|
|
513
|
+
type: PropType<String | Number>;
|
|
514
|
+
};
|
|
515
|
+
draggable: {
|
|
516
|
+
type: BooleanConstructor;
|
|
517
|
+
default: boolean;
|
|
518
|
+
};
|
|
519
|
+
defaultFullscreen: {
|
|
520
|
+
type: BooleanConstructor;
|
|
521
|
+
};
|
|
522
|
+
canFullscreen: {
|
|
523
|
+
type: BooleanConstructor;
|
|
524
|
+
default: boolean;
|
|
525
|
+
};
|
|
526
|
+
title: {
|
|
527
|
+
type: PropType<String | import("vue").ComputedRef<String>>;
|
|
528
|
+
};
|
|
529
|
+
loading: {
|
|
530
|
+
type: BooleanConstructor;
|
|
531
|
+
default: boolean;
|
|
532
|
+
};
|
|
533
|
+
loadingTip: {
|
|
534
|
+
type: StringConstructor;
|
|
535
|
+
default: string;
|
|
536
|
+
};
|
|
537
|
+
useWrapper: {
|
|
538
|
+
type: BooleanConstructor;
|
|
539
|
+
default: boolean;
|
|
540
|
+
};
|
|
541
|
+
wrapClassName: {
|
|
542
|
+
type: StringConstructor;
|
|
543
|
+
};
|
|
544
|
+
zIndex: {
|
|
545
|
+
type: NumberConstructor;
|
|
546
|
+
};
|
|
547
|
+
centered: {
|
|
548
|
+
type: BooleanConstructor;
|
|
549
|
+
};
|
|
550
|
+
showOkBtn: {
|
|
551
|
+
type: BooleanConstructor;
|
|
552
|
+
default: boolean;
|
|
553
|
+
};
|
|
554
|
+
showCancelBtn: {
|
|
555
|
+
type: BooleanConstructor;
|
|
556
|
+
default: boolean;
|
|
557
|
+
};
|
|
558
|
+
okText: {
|
|
559
|
+
type: StringConstructor;
|
|
560
|
+
};
|
|
561
|
+
cancelText: {
|
|
562
|
+
type: StringConstructor;
|
|
563
|
+
};
|
|
564
|
+
mask: {
|
|
565
|
+
type: BooleanConstructor;
|
|
566
|
+
default: boolean;
|
|
567
|
+
};
|
|
568
|
+
maskClosable: {
|
|
569
|
+
type: BooleanConstructor;
|
|
570
|
+
default: boolean;
|
|
571
|
+
};
|
|
572
|
+
keyboard: {
|
|
573
|
+
type: BooleanConstructor;
|
|
574
|
+
default: boolean;
|
|
575
|
+
};
|
|
576
|
+
maskStyle: PropType<import("vue").CSSProperties>;
|
|
577
|
+
footer: {
|
|
578
|
+
type: PropType<import("../../../form/src/types/form.type").ButtonProps[]>;
|
|
579
|
+
};
|
|
580
|
+
bodyStyle: PropType<import("vue").CSSProperties>;
|
|
581
|
+
wrapperProps: ObjectConstructor;
|
|
582
|
+
getContainer: PropType<() => any>;
|
|
583
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
584
|
+
afterClose: FunctionConstructor;
|
|
585
|
+
};
|
|
586
|
+
emits: string[];
|
|
587
|
+
setup(props: any, { slots, emit }: {
|
|
588
|
+
slots: any;
|
|
589
|
+
emit: any;
|
|
590
|
+
}): () => JSX.Element;
|
|
591
|
+
};
|
|
699
592
|
CloseIcon: import("vue").DefineComponent<{
|
|
700
593
|
canFullscreen: {
|
|
701
594
|
type: BooleanConstructor;
|
|
@@ -1235,7 +1128,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
1235
1128
|
};
|
|
1236
1129
|
toolbar: {
|
|
1237
1130
|
type: PropType<ButtonType[]>;
|
|
1238
|
-
default: any[];
|
|
1131
|
+
default: () => any[];
|
|
1239
1132
|
};
|
|
1240
1133
|
}>>, {
|
|
1241
1134
|
toolbar: ButtonType[];
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { Recordable } from '@dt-frames/core';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
import { BasicColumn } from '../types/table.type';
|
|
4
|
-
declare const _sfc_main:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
declare const _sfc_main: {
|
|
5
|
+
name: string;
|
|
6
|
+
props: {
|
|
7
|
+
column: PropType<BasicColumn>;
|
|
8
|
+
record: PropType<Recordable<any>>;
|
|
9
|
+
index: NumberConstructor;
|
|
10
|
+
};
|
|
11
|
+
setup(props: {
|
|
12
|
+
column: BasicColumn;
|
|
13
|
+
record: Recordable;
|
|
14
|
+
index: Number;
|
|
15
|
+
}, {}: {}): () => JSX.Element;
|
|
16
|
+
};
|
|
13
17
|
export default _sfc_main;
|