@dt-frames/ui 2.0.3 → 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.
Files changed (44) hide show
  1. package/es/assets/locales/en.ts +1 -1
  2. package/es/components/curd/index.js +279 -269
  3. package/es/components/drawer/index.d.ts +1 -1
  4. package/es/components/drawer/index.js +27 -27
  5. package/es/components/drawer/src/index.d.ts +2 -3
  6. package/es/components/form/index.d.ts +20 -20
  7. package/es/components/form/index.js +91 -45
  8. package/es/components/form/index.less +206 -8
  9. package/es/components/form/src/components/FormItem.d.ts +3 -7
  10. package/es/components/form/src/components/formIcon.d.ts +14 -14
  11. package/es/components/form/src/components/formInputUseDialog.d.ts +8 -8
  12. package/es/components/form/src/enums/index.d.ts +1 -1
  13. package/es/components/form/src/index.d.ts +16 -16
  14. package/es/components/form/src/props.d.ts +2 -6
  15. package/es/components/form/src/types/form.type.d.ts +1 -1
  16. package/es/components/icons/index.less +5 -0
  17. package/es/components/modal/index.js +35 -34
  18. package/es/components/modal/index.less +10 -0
  19. package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
  20. package/es/components/modal/src/index.d.ts +9 -9
  21. package/es/components/source/hooks/useSource.d.ts +14 -0
  22. package/es/components/source/index.js +66 -28
  23. package/es/components/source/types/source.type.d.ts +4 -8
  24. package/es/components/table/index.js +278 -215
  25. package/es/components/table/index.less +41 -14
  26. package/es/components/table/src/index.d.ts +20 -10
  27. package/es/components/table/src/props.d.ts +8 -4
  28. package/es/components/table/src/types/table.type.d.ts +4 -5
  29. package/es/theme/index.js +342 -120
  30. package/es/theme/index.less +150 -0
  31. package/es/theme/src/components/header/components/size.d.ts +5 -5
  32. package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
  33. package/es/theme/src/components/header/index.d.ts +5 -5
  34. package/es/theme/src/components/header/multiple-header.d.ts +6 -7
  35. package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
  36. package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
  37. package/es/theme/src/components/sider/index.d.ts +147 -3
  38. package/es/theme/src/components/sider/mix-sider.d.ts +146 -0
  39. package/es/theme/src/enums/theme.enum.d.ts +2 -1
  40. package/es/theme/src/hooks/useMenu.d.ts +5 -3
  41. package/es/theme/src/index.d.ts +159 -15
  42. package/es/theme/src/stores/theme.store.d.ts +3 -0
  43. package/es/theme/src/types/theme.type.d.ts +1 -0
  44. package/package.json +1 -3
@@ -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;
@@ -81,23 +97,27 @@
81
97
  border-color: @primary-color;
82
98
  color: @primary-color;
83
99
  }
84
- }
85
100
 
86
- .ant-select-sm{
87
- .ant-select-item-option-content{
88
- font-size: 12px;
101
+ .ant-table-middle{
102
+ .dt-table-setting {
103
+ i{
104
+ font-size: 20px;
105
+ }
106
+ }
89
107
  }
90
108
  }
91
109
 
92
- .ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector{
93
- height: 30px;
94
- }
95
- .ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector::after,
96
- .ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item,
97
- .ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder{
98
- line-height: 28px;
99
- height: 28px;
100
- font-size: 12px;
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
+ }
101
121
  }
102
122
 
103
123
  .ant-table-small{
@@ -106,6 +126,9 @@
106
126
  line-height: 16px !important;
107
127
  font-size: 12px !important;
108
128
  padding: 2px 8px !important;
129
+ i{
130
+ font-size: 18px;
131
+ }
109
132
  }
110
133
  }
111
134
 
@@ -115,6 +138,9 @@
115
138
  line-height: 20px !important;
116
139
  font-size: 13px !important;
117
140
  padding: 4px 8px !important;
141
+ i{
142
+ font-size: 18px;
143
+ }
118
144
  }
119
145
  }
120
146
 
@@ -189,4 +215,5 @@
189
215
  .dt-table-action-btn, .dt-table-action-dropdown{
190
216
  font-size: 18px;
191
217
  vertical-align: middle;
192
- }
218
+ color: @primary-color;
219
+ }
@@ -2,6 +2,10 @@ import { TableProps as ATableProps } from "ant-design-vue/es/table";
2
2
  import type { TableActionType } from './types/actions.type';
3
3
  import type { BasicTableProps } from './types/table.type';
4
4
  declare const _sfc_main: import("vue").DefineComponent<{
5
+ autoFetch: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
5
9
  clickToSelectRow: {
6
10
  type: BooleanConstructor;
7
11
  default: boolean;
@@ -14,10 +18,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
14
18
  type: BooleanConstructor;
15
19
  default: boolean;
16
20
  };
17
- canColDrag: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
21
  clearSelectOnPageChange: {
22
22
  type: BooleanConstructor;
23
23
  default: boolean;
@@ -150,6 +150,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
150
150
  registerInstance: {
151
151
  type: import("vue").PropType<(instance: TableActionType) => void>;
152
152
  };
153
+ onSearch: {
154
+ type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
155
+ default: (params: import("@dt-frames/core").Recordable<any>) => void;
156
+ };
153
157
  onAdd: {
154
158
  type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
155
159
  default: (params: import("@dt-frames/core").Recordable<any>) => {};
@@ -298,10 +302,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
298
302
  onVisibleChange: import("vue").PropType<(vis: boolean) => void>;
299
303
  'onUpdate:visible': import("vue").PropType<(vis: boolean) => void>;
300
304
  }>>;
305
+ autoFetch: boolean;
301
306
  clickToSelectRow: boolean;
302
307
  tableSetting: {};
303
308
  striped: boolean;
304
- canColDrag: boolean;
305
309
  clearSelectOnPageChange: boolean;
306
310
  resizable: boolean;
307
311
  virtual: boolean;
@@ -319,6 +323,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
319
323
  onDownload: Function;
320
324
  indexColumnProps: import("./types/table.type").BasicColumn[];
321
325
  isTreeTable: boolean;
326
+ onSearch: (params: import("@dt-frames/core").Recordable<any>) => void;
322
327
  onAdd: (params: import("@dt-frames/core").Recordable<any>) => void;
323
328
  onUpdate: (params: {
324
329
  row: import("@dt-frames/core").Recordable<any>;
@@ -409,6 +414,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
409
414
  }, {}: {}): () => JSX.Element;
410
415
  };
411
416
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("register" | "selection-change" | "columns-change" | "row-click" | "row-dbClick" | "row-contextmenu" | "row-mouseenter" | "row-mouseleave" | "edit-change")[], "register" | "selection-change" | "columns-change" | "row-click" | "row-dbClick" | "row-contextmenu" | "row-mouseenter" | "row-mouseleave" | "edit-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
417
+ autoFetch: {
418
+ type: BooleanConstructor;
419
+ default: boolean;
420
+ };
412
421
  clickToSelectRow: {
413
422
  type: BooleanConstructor;
414
423
  default: boolean;
@@ -421,10 +430,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
421
430
  type: BooleanConstructor;
422
431
  default: boolean;
423
432
  };
424
- canColDrag: {
425
- type: BooleanConstructor;
426
- default: boolean;
427
- };
428
433
  clearSelectOnPageChange: {
429
434
  type: BooleanConstructor;
430
435
  default: boolean;
@@ -557,6 +562,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
557
562
  registerInstance: {
558
563
  type: import("vue").PropType<(instance: TableActionType) => void>;
559
564
  };
565
+ onSearch: {
566
+ type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
567
+ default: (params: import("@dt-frames/core").Recordable<any>) => void;
568
+ };
560
569
  onAdd: {
561
570
  type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
562
571
  default: (params: import("@dt-frames/core").Recordable<any>) => {};
@@ -597,10 +606,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
597
606
  "onEdit-change"?: (...args: any[]) => any;
598
607
  }, {
599
608
  loading: boolean;
609
+ autoFetch: boolean;
600
610
  clickToSelectRow: boolean;
601
611
  tableSetting: {};
602
612
  striped: boolean;
603
- canColDrag: boolean;
604
613
  clearSelectOnPageChange: boolean;
605
614
  resizable: boolean;
606
615
  virtual: boolean;
@@ -630,6 +639,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
630
639
  childrenColumnName: string;
631
640
  indexColumnProps: import("./types/table.type").BasicColumn[];
632
641
  isTreeTable: boolean;
642
+ onSearch: (params: import("@dt-frames/core").Recordable<any>) => void;
633
643
  onAdd: (params: import("@dt-frames/core").Recordable<any>) => void;
634
644
  onUpdate: (params: {
635
645
  row: import("@dt-frames/core").Recordable<any>;
@@ -6,6 +6,10 @@ import { DownloadType } from "./types/header.type";
6
6
  import { BasicColumn, ButtonType, TableRowAction, TableSetting, PaginationProps } from "./types/table.type";
7
7
  export declare const DEFAULT_SORT_FN: (sortInfo: any) => Recordable;
8
8
  export declare const TableProps: {
9
+ autoFetch: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
9
13
  clickToSelectRow: {
10
14
  type: BooleanConstructor;
11
15
  default: boolean;
@@ -18,10 +22,6 @@ export declare const TableProps: {
18
22
  type: BooleanConstructor;
19
23
  default: boolean;
20
24
  };
21
- canColDrag: {
22
- type: BooleanConstructor;
23
- default: boolean;
24
- };
25
25
  clearSelectOnPageChange: {
26
26
  type: BooleanConstructor;
27
27
  default: boolean;
@@ -154,6 +154,10 @@ export declare const TableProps: {
154
154
  registerInstance: {
155
155
  type: PropType<(instance: TableActionType) => void>;
156
156
  };
157
+ onSearch: {
158
+ type: PropType<(params: Recordable) => void>;
159
+ default: (params: Recordable) => void;
160
+ };
157
161
  onAdd: {
158
162
  type: PropType<(params: Recordable) => void>;
159
163
  default: (params: Recordable) => {};
@@ -4,10 +4,9 @@ import { ComputedRef, ExtractPropTypes, Ref, VNode } from "vue";
4
4
  import { TableProps } from "../props";
5
5
  import { PaginationProps as APaginationProps } from "ant-design-vue/es/pagination/Pagination";
6
6
  export declare type ButtonFlag = 'OK' | 'CANCEL' | 'ADD' | 'DEL' | 'DELS' | 'UPDATE';
7
+ export declare type DownloadType = ('current' | 'select' | 'all');
7
8
  export declare type TableSetting = {
8
- download?: boolean;
9
- onlyFrontDownload?: boolean;
10
- onlyBackDowonload?: boolean;
9
+ download?: boolean | DownloadType[];
11
10
  setting?: boolean;
12
11
  fullscreen?: boolean;
13
12
  };
@@ -47,8 +46,8 @@ export interface BasicColumn extends ColumnProps<Recordable> {
47
46
  }
48
47
  export declare type ButtonType = {
49
48
  t?: string;
50
- name?: string;
51
- icon?: string;
49
+ label?: string | ((row: Recordable) => string);
50
+ icon?: string | ((row: Recordable) => string);
52
51
  auth?: string;
53
52
  color?: string;
54
53
  class?: string;