@dt-frames/ui 2.0.2 → 2.0.3

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 (54) hide show
  1. package/es/components/container/index.d.ts +4 -3
  2. package/es/components/container/index.js +24 -22
  3. package/es/components/container/src/slot-container.d.ts +5 -3
  4. package/es/components/curd/index.js +304 -282
  5. package/es/components/curd/src/components/Curd.d.ts +126 -331
  6. package/es/components/curd/src/props.d.ts +14 -15
  7. package/es/components/drawer/index.d.ts +2 -4
  8. package/es/components/drawer/index.js +64 -63
  9. package/es/components/drawer/src/components/DrawerHeader.d.ts +1 -3
  10. package/es/components/drawer/src/index.d.ts +2 -4
  11. package/es/components/form/index.d.ts +196 -344
  12. package/es/components/form/index.js +140 -139
  13. package/es/components/form/src/components/FormButtons.d.ts +3 -3
  14. package/es/components/form/src/components/FormItem.d.ts +156 -304
  15. package/es/components/form/src/components/formIcon.d.ts +10 -10
  16. package/es/components/form/src/components/formInputUseDialog.d.ts +5 -5
  17. package/es/components/form/src/index.d.ts +186 -334
  18. package/es/components/form/src/props.d.ts +7 -7
  19. package/es/components/form/src/types/form.type.d.ts +1 -1
  20. package/es/components/icons/index.d.ts +496 -2
  21. package/es/components/icons/src/pick-icon.d.ts +5 -5
  22. package/es/components/modal/index.js +87 -86
  23. package/es/components/modal/src/components/Modal.d.ts +108 -215
  24. package/es/components/modal/src/index.d.ts +107 -214
  25. package/es/components/source/index.js +1 -0
  26. package/es/components/table/index.js +357 -788
  27. package/es/components/table/index.less +9 -0
  28. package/es/components/table/src/components/TableAction.d.ts +1 -1
  29. package/es/components/table/src/components/TableHeader.d.ts +109 -216
  30. package/es/components/table/src/components/TableRender.d.ts +13 -9
  31. package/es/components/table/src/components/tableSetting/Download.d.ts +107 -214
  32. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +107 -214
  33. package/es/components/table/src/components/tableSetting/index.d.ts +107 -214
  34. package/es/components/table/src/hooks/useDataSource.d.ts +1 -2
  35. package/es/components/table/src/hooks/usePagination.d.ts +3 -118
  36. package/es/components/table/src/index.d.ts +79 -425
  37. package/es/components/table/src/props.d.ts +11 -70
  38. package/es/components/table/src/types/actions.type.d.ts +1 -2
  39. package/es/components/table/src/types/table.type.d.ts +9 -3
  40. package/es/index.d.ts +1 -1
  41. package/es/index.js +2 -3240
  42. package/es/theme/index.js +406 -393
  43. package/es/theme/src/components/header/components/logo.d.ts +0 -1
  44. package/es/theme/src/components/header/components/notify.d.ts +4 -3
  45. package/es/theme/src/components/header/components/setting-theme.d.ts +2 -1
  46. package/es/theme/src/components/header/components/size.d.ts +5 -5
  47. package/es/theme/src/components/header/components/user-info.d.ts +4 -3
  48. package/es/theme/src/components/header/index.d.ts +13 -12
  49. package/es/theme/src/components/header/multiple-header.d.ts +26 -28
  50. package/es/theme/src/hooks/useMenu.d.ts +1 -1
  51. package/es/theme/src/index.d.ts +27 -28
  52. package/es/theme/src/types/theme.type.d.ts +1 -1
  53. package/package.json +3 -2
  54. package/vite.config.ts +0 -27
@@ -3,7 +3,7 @@ import { TableRowSelection } from "ant-design-vue/lib/table/interface";
3
3
  import { PropType } from "vue";
4
4
  import { TableActionType } from "./types/actions.type";
5
5
  import { DownloadType } from "./types/header.type";
6
- import { BasicColumn, ButtonType, TableRowAction, TableSetting } from "./types/table.type";
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
9
  clickToSelectRow: {
@@ -66,7 +66,7 @@ export declare const TableProps: {
66
66
  };
67
67
  slotsTemplate: {
68
68
  type: PropType<Recordable<any>>;
69
- default: {};
69
+ default: () => {};
70
70
  };
71
71
  showIndexColumn: {
72
72
  type: BooleanConstructor;
@@ -97,67 +97,8 @@ export declare const TableProps: {
97
97
  default: boolean;
98
98
  };
99
99
  pagination: {
100
- type: PropType<Boolean | Partial<import("vue").ExtractPropTypes<{
101
- total: NumberConstructor;
102
- defaultCurrent: NumberConstructor;
103
- disabled: {
104
- type: BooleanConstructor;
105
- default: any;
106
- };
107
- current: NumberConstructor;
108
- defaultPageSize: NumberConstructor;
109
- pageSize: NumberConstructor;
110
- hideOnSinglePage: {
111
- type: BooleanConstructor;
112
- default: any;
113
- };
114
- showSizeChanger: {
115
- type: BooleanConstructor;
116
- default: any;
117
- };
118
- pageSizeOptions: PropType<(string | number)[]>;
119
- buildOptionText: PropType<(opt: {
120
- value: any;
121
- }) => any>;
122
- showQuickJumper: {
123
- type: PropType<boolean | {
124
- goButton?: any;
125
- }>;
126
- default: boolean | {
127
- goButton?: any;
128
- };
129
- };
130
- showTotal: PropType<(total: number, range: [number, number]) => any>;
131
- size: PropType<"default" | "small">;
132
- simple: {
133
- type: BooleanConstructor;
134
- default: any;
135
- };
136
- locale: ObjectConstructor;
137
- prefixCls: StringConstructor;
138
- selectPrefixCls: StringConstructor;
139
- totalBoundaryShowSizeChanger: NumberConstructor;
140
- selectComponentClass: StringConstructor;
141
- itemRender: PropType<(opt: {
142
- page: number;
143
- type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
144
- originalElement: any;
145
- }) => any>;
146
- role: StringConstructor;
147
- responsive: BooleanConstructor;
148
- showLessItems: {
149
- type: BooleanConstructor;
150
- default: any;
151
- };
152
- onChange: PropType<(page: number, pageSize: number) => void>;
153
- onShowSizeChange: PropType<(current: number, size: number) => void>;
154
- 'onUpdate:current': PropType<(current: number) => void>;
155
- 'onUpdate:pageSize': PropType<(size: number) => void>;
156
- }>>>;
157
- default: {
158
- pageSize: number;
159
- current: number;
160
- };
100
+ type: PropType<Boolean | PaginationProps>;
101
+ default: any;
161
102
  };
162
103
  loading: {
163
104
  type: BooleanConstructor;
@@ -175,11 +116,11 @@ export declare const TableProps: {
175
116
  };
176
117
  onTableChange: {
177
118
  type: FunctionConstructor;
178
- default: () => void;
119
+ default: () => {};
179
120
  };
180
121
  onDownload: {
181
122
  type: FunctionConstructor;
182
- default: (excelData: DownloadType) => void;
123
+ default: (excelData: DownloadType) => {};
183
124
  };
184
125
  rowSelection: {
185
126
  type: PropType<TableRowSelection<any>>;
@@ -190,7 +131,7 @@ export declare const TableProps: {
190
131
  };
191
132
  customRow: {
192
133
  type: PropType<(record: any, index: any) => void>;
193
- default: () => void;
134
+ default: () => {};
194
135
  };
195
136
  childrenColumnName: {
196
137
  type: StringConstructor;
@@ -215,7 +156,7 @@ export declare const TableProps: {
215
156
  };
216
157
  onAdd: {
217
158
  type: PropType<(params: Recordable) => void>;
218
- default: (params: Recordable) => void;
159
+ default: (params: Recordable) => {};
219
160
  };
220
161
  onUpdate: {
221
162
  type: PropType<(params: {
@@ -225,7 +166,7 @@ export declare const TableProps: {
225
166
  default: (params: {
226
167
  row: Recordable;
227
168
  index: number;
228
- }) => void;
169
+ }) => {};
229
170
  };
230
171
  onDelete: {
231
172
  type: PropType<(params: {
@@ -235,10 +176,10 @@ export declare const TableProps: {
235
176
  default: (params: {
236
177
  row: Recordable;
237
178
  index: number;
238
- }) => void;
179
+ }) => {};
239
180
  };
240
181
  onDeletes: {
241
182
  type: PropType<(params: Recordable) => void>;
242
- default: (params: Recordable) => void;
183
+ default: (params: Recordable) => {};
243
184
  };
244
185
  };
@@ -1,8 +1,7 @@
1
1
  import { Recordable } from "@dt-frames/core";
2
2
  import { Key, TableRowSelection } from "ant-design-vue/es/table/interface";
3
- import { PaginationProps } from "ant-design-vue/es/pagination";
4
3
  import { SetColumnsParams } from "./header.type";
5
- import { BasicColumn, BasicTableProps } from "./table.type";
4
+ import { BasicColumn, BasicTableProps, PaginationProps } from "./table.type";
6
5
  export declare type TableActionType = {
7
6
  setProps: (props: Partial<BasicTableProps>) => void;
8
7
  setLoading: (loading: boolean) => void;
@@ -1,7 +1,8 @@
1
1
  import { DictType, Recordable } from "@dt-frames/core";
2
2
  import { ColumnProps, TableProps as ATableProps } from "ant-design-vue/es/table";
3
- import { ComputedRef, ExtractPropTypes, VNode } from "vue";
3
+ import { ComputedRef, ExtractPropTypes, Ref, VNode } from "vue";
4
4
  import { TableProps } from "../props";
5
+ import { PaginationProps as APaginationProps } from "ant-design-vue/es/pagination/Pagination";
5
6
  export declare type ButtonFlag = 'OK' | 'CANCEL' | 'ADD' | 'DEL' | 'DELS' | 'UPDATE';
6
7
  export declare type TableSetting = {
7
8
  download?: boolean;
@@ -53,7 +54,7 @@ export declare type ButtonType = {
53
54
  class?: string;
54
55
  type?: 'primary' | 'ghost' | 'dashed' | 'link' | 'text' | 'default';
55
56
  size?: 'large' | 'middle' | 'small';
56
- loading?: boolean;
57
+ loading?: Ref<boolean>;
57
58
  disabled?: boolean;
58
59
  show?: boolean | ((row?: Recordable) => boolean) | ComputedRef<boolean>;
59
60
  preIcon?: string;
@@ -76,8 +77,13 @@ export declare type ColumnChangeParam = {
76
77
  fixed: boolean | 'left' | 'right' | undefined;
77
78
  visible: boolean;
78
79
  };
79
- export declare type BasicTableProps = ATableProps & ExtractPropTypes<typeof TableProps> & {
80
+ export declare type PaginationProps = (APaginationProps & {
81
+ class?: string;
82
+ });
83
+ export declare type BasicTableProps = Omit<ATableProps, 'columns' | 'pagination'> & ExtractPropTypes<typeof TableProps> & {
80
84
  onColumnsChange?: (data: ColumnChangeParam[]) => void;
85
+ columns: BasicColumn[];
86
+ pagination: PaginationProps | boolean;
81
87
  };
82
88
  export declare type SorterResult = {
83
89
  column: ColumnProps;
package/es/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './theme';
1
+ export declare const test: any;