@dt-frames/ui 1.0.4 → 1.0.5

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 (65) hide show
  1. package/es/assets/imgs/header/avatar.png +0 -0
  2. package/es/components/curd/src/components/dialog.d.ts +21 -58
  3. package/es/components/curd/src/types/curd.type.d.ts +2 -1
  4. package/es/components/dialog/index.d.ts +2 -0
  5. package/es/components/dialog/src/hooks/useDialog.d.ts +3 -0
  6. package/es/components/forms/index.d.ts +2 -2
  7. package/es/components/forms/src/components/formIcon.d.ts +4 -47
  8. package/es/components/forms/src/index.d.ts +2 -6
  9. package/es/components/index.d.ts +2 -1
  10. package/es/components/modal/src/components/close-icon.d.ts +0 -43
  11. package/es/components/modal/src/index.d.ts +0 -43
  12. package/es/components/source/src/types/table.type.d.ts +1 -1
  13. package/es/components/table/index.d.ts +1 -1
  14. package/es/components/table/src/components/setting/Column.d.ts +6 -5
  15. package/es/components/table/src/hooks/useColumns.d.ts +1 -1
  16. package/es/components/table/src/hooks/useDataSource.d.ts +1 -3
  17. package/es/components/table/src/hooks/useHeaderCode.d.ts +2 -0
  18. package/es/components/table/src/hooks/useRowSelection.d.ts +2 -3
  19. package/es/components/table/src/index.d.ts +15 -3
  20. package/es/components/table/src/props.d.ts +7 -1
  21. package/es/index.js +466 -95
  22. package/es/style/components/icons/index.less +1 -0
  23. package/es/style/components/modal/index.less +0 -3
  24. package/es/style/components/table/index.less +12 -1
  25. package/es/style/theme/header/index.less +8 -4
  26. package/es/theme/header/components/logo.d.ts +43 -0
  27. package/package.json +6 -3
  28. package/src/assets/imgs/header/avatar.png +0 -0
  29. package/src/components/curd/src/components/dialog.vue +11 -5
  30. package/src/components/curd/src/hooks/useCurd.tsx +24 -9
  31. package/src/components/curd/src/types/curd.type.ts +3 -1
  32. package/src/components/dialog/index.ts +5 -0
  33. package/src/components/dialog/src/hooks/useDialog.ts +85 -0
  34. package/src/components/forms/index.ts +3 -4
  35. package/src/components/icons/index.less +1 -0
  36. package/src/components/iframe/src/index.less +3 -0
  37. package/src/components/index.ts +3 -1
  38. package/src/components/modal/index.less +0 -3
  39. package/src/components/modal/src/components/close-icon.vue +4 -4
  40. package/src/components/modal/src/components/modal.tsx +1 -1
  41. package/src/components/modal/src/components/modalFooter.vue +1 -1
  42. package/src/components/modal/src/hooks/useModal.ts +0 -1
  43. package/src/components/source/src/hooks/useFetch.ts +3 -4
  44. package/src/components/source/src/hooks/useSource.ts +4 -3
  45. package/src/components/source/src/types/table.type.ts +1 -1
  46. package/src/components/table/index.less +12 -1
  47. package/src/components/table/index.ts +1 -1
  48. package/src/components/table/src/components/TableActions.vue +2 -2
  49. package/src/components/table/src/components/setting/Column.vue +1 -2
  50. package/src/components/table/src/hooks/useColumns.ts +2 -2
  51. package/src/components/table/src/hooks/useHeaderCode.ts +82 -0
  52. package/src/components/table/src/hooks/useRowSelection.ts +2 -3
  53. package/src/components/table/src/hooks/useTable.ts +13 -1
  54. package/src/components/table/src/hooks/useTableScroll.ts +5 -3
  55. package/src/components/table/src/index.vue +18 -19
  56. package/src/components/table/src/props.ts +8 -3
  57. package/src/theme/header/components/logo.vue +4 -2
  58. package/src/theme/header/components/user-info.vue +21 -4
  59. package/src/theme/header/index.less +8 -4
  60. package/es/index.css +0 -1
  61. package/es/style/components/forms/src/index.less +0 -82
  62. package/es/style/components/icons/src/index.less +0 -96
  63. package/es/style/components/modal/src/index.less +0 -60
  64. package/es/style/components/table/src/index.less +0 -162
  65. package/es/theme/header/components/user-info.d.ts +0 -452
Binary file
@@ -1,10 +1,14 @@
1
1
  import { Recordable } from "@dt-frames/core";
2
2
  import { Ref, PropType } from "vue";
3
+ import { FormProps } from "../../../forms";
3
4
  declare const _sfc_main: import("vue").DefineComponent<{
4
5
  onRegister: {
5
6
  type: FunctionConstructor;
6
7
  };
7
8
  formProps: {
9
+ type: PropType<Ref<Partial<FormProps>>>;
10
+ };
11
+ formsVal: {
8
12
  type: PropType<Ref<Recordable<any>>>;
9
13
  };
10
14
  title: {
@@ -42,6 +46,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
42
46
  type: FunctionConstructor;
43
47
  };
44
48
  formProps: {
49
+ type: PropType<Ref<Partial<FormProps>>>;
50
+ };
51
+ formsVal: {
45
52
  type: PropType<Ref<Recordable<any>>>;
46
53
  };
47
54
  title: {
@@ -77,7 +84,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
77
84
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any);
78
85
  }>>;
79
86
  registerDialog: import("../../../modal/src/types/modal.type").RegisterFn;
80
- registerForm: (formInstance: import("../../../forms/src/types/form.type").FormActionType) => void;
87
+ registerForm: (formInstance: import("../../../forms").FormActionType) => void;
81
88
  getFormValues: () => Recordable<any>;
82
89
  setFormValues: (values: Recordable<any>) => Promise<void>;
83
90
  handleSave: () => void;
@@ -111,7 +118,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
111
118
  type: PropType<"small" | "default" | "large">;
112
119
  };
113
120
  formActions: {
114
- type: PropType<import("../../../forms/src/types/form.type").FormActionType>;
121
+ type: PropType<import("../../../forms").FormActionType>;
115
122
  };
116
123
  labelAlign: {
117
124
  type: PropType<"left" | "right">;
@@ -129,23 +136,19 @@ declare const _sfc_main: import("vue").DefineComponent<{
129
136
  default: any;
130
137
  };
131
138
  }>>>;
132
- colProps: PropType<import("../../../forms/src/types/form.type").ColEx>;
139
+ colProps: PropType<import("../../../forms").ColEx>;
133
140
  }, {
134
141
  getFormBindValue: import("vue").ComputedRef<Recordable<any>>;
135
142
  getFormClass: import("vue").ComputedRef<(string | {
136
143
  'basic-form--compact': boolean;
137
144
  'basic-form--search': boolean;
138
145
  })[]>;
139
- formModel: {
140
- [x: string]: any;
141
- };
146
+ formModel: Recordable<any>;
142
147
  getLayout: import("vue").ComputedRef<"vertical" | "horizontal" | "inline">;
143
- getProps: import("vue").ComputedRef<import("../../../forms/src/types/form.type").FormProps>;
148
+ getProps: import("vue").ComputedRef<FormProps>;
144
149
  getSchema: import("vue").ComputedRef<import("../../../forms").FormSchema[]>;
145
- defaultValue: Ref<{
146
- [x: string]: any;
147
- }>;
148
- formActionMethods: import("../../../forms/src/types/form.type").FormActionType;
150
+ defaultValue: Ref<Recordable<any>>;
151
+ formActionMethods: import("../../../forms").FormActionType;
149
152
  formElRef: any;
150
153
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
151
154
  mode: {
@@ -177,7 +180,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
177
180
  type: PropType<"small" | "default" | "large">;
178
181
  };
179
182
  formActions: {
180
- type: PropType<import("../../../forms/src/types/form.type").FormActionType>;
183
+ type: PropType<import("../../../forms").FormActionType>;
181
184
  };
182
185
  labelAlign: {
183
186
  type: PropType<"left" | "right">;
@@ -195,7 +198,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
195
198
  default: any;
196
199
  };
197
200
  }>>>;
198
- colProps: PropType<import("../../../forms/src/types/form.type").ColEx>;
201
+ colProps: PropType<import("../../../forms").ColEx>;
199
202
  }>> & {
200
203
  onRegister?: (...args: any[]) => any;
201
204
  onReset?: (...args: any[]) => any;
@@ -233,7 +236,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
233
236
  type: PropType<"small" | "default" | "large">;
234
237
  };
235
238
  formActions: {
236
- type: PropType<import("../../../forms/src/types/form.type").FormActionType>;
239
+ type: PropType<import("../../../forms").FormActionType>;
237
240
  };
238
241
  labelAlign: {
239
242
  type: PropType<"left" | "right">;
@@ -251,7 +254,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
251
254
  default: any;
252
255
  };
253
256
  }>>>;
254
- colProps: PropType<import("../../../forms/src/types/form.type").ColEx>;
257
+ colProps: PropType<import("../../../forms").ColEx>;
255
258
  }>> & {
256
259
  onRegister?: (...args: any[]) => any;
257
260
  onReset?: (...args: any[]) => any;
@@ -1278,49 +1281,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
1278
1281
  autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
1279
1282
  arrowPointAtCenter: boolean;
1280
1283
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
1281
- DtIcon: import("vue").DefineComponent<{
1282
- iconClass: {
1283
- type: StringConstructor;
1284
- required: true;
1285
- };
1286
- className: {
1287
- type: (StringConstructor | ArrayConstructor)[];
1288
- default: string;
1289
- };
1290
- color: {
1291
- type: StringConstructor;
1292
- default: string;
1293
- };
1294
- size: {
1295
- type: NumberConstructor;
1296
- default: number;
1297
- };
1298
- }, {
1299
- isSvgIcon: import("vue").ComputedRef<boolean>;
1300
- iconName: import("vue").ComputedRef<string>;
1301
- clsName: import("vue").ComputedRef<string>;
1302
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1303
- iconClass: {
1304
- type: StringConstructor;
1305
- required: true;
1306
- };
1307
- className: {
1308
- type: (StringConstructor | ArrayConstructor)[];
1309
- default: string;
1310
- };
1311
- color: {
1312
- type: StringConstructor;
1313
- default: string;
1314
- };
1315
- size: {
1316
- type: NumberConstructor;
1317
- default: number;
1318
- };
1319
- }>>, {
1320
- className: string | unknown[];
1321
- color: string;
1322
- size: number;
1323
- }>;
1324
1284
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "fullscreen")[], "cancel" | "fullscreen", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1325
1285
  canFullscreen: {
1326
1286
  type: BooleanConstructor;
@@ -1452,6 +1412,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
1452
1412
  type: FunctionConstructor;
1453
1413
  };
1454
1414
  formProps: {
1415
+ type: PropType<Ref<Partial<FormProps>>>;
1416
+ };
1417
+ formsVal: {
1455
1418
  type: PropType<Ref<Recordable<any>>>;
1456
1419
  };
1457
1420
  title: {
@@ -1,5 +1,5 @@
1
1
  import { Recordable } from "@dt-frames/core";
2
- import { FormSchema, ButtonProps } from "../../../forms/src/types/form.type";
2
+ import { FormSchema, ButtonProps, FormProps } from "../../../forms/src/types/form.type";
3
3
  export declare type CrudOptType = {
4
4
  title?: string;
5
5
  width?: string | number;
@@ -8,6 +8,7 @@ export declare type CrudOptType = {
8
8
  showFullscreen?: boolean;
9
9
  showClose?: boolean;
10
10
  primaryKey?: string;
11
+ formProps?: Partial<FormProps>;
11
12
  curd?: {
12
13
  onAdd?: (model: Recordable) => void;
13
14
  onUpdate?: (model: Recordable) => void;
@@ -0,0 +1,2 @@
1
+ import { useDialog } from './src/hooks/useDialog';
2
+ export { useDialog };
@@ -0,0 +1,3 @@
1
+ export declare function useDialog(): {
2
+ createDialog: (component: any, options: any) => Promise<unknown>;
3
+ };
@@ -1,5 +1,5 @@
1
1
  import DtForm from "./src/index";
2
2
  import { useForm } from './src/hooks/useForm';
3
- import { ButtonProps, FormSchema } from './src/types/form.type';
4
3
  import FormButtons from "./src/components/formButton";
5
- export { FormButtons, DtForm, useForm, FormSchema, ButtonProps };
4
+ export * from './src/types/form.type';
5
+ export { FormButtons, DtForm, useForm };
@@ -612,11 +612,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
612
612
  readonly TextArea: import("vue").DefineComponent<{
613
613
  rows: NumberConstructor;
614
614
  autosize: {
615
- type: import("vue").PropType<import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
615
+ type: import("vue").PropType<boolean | import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
616
616
  default: any;
617
617
  };
618
618
  autoSize: {
619
- type: import("vue").PropType<import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
619
+ type: import("vue").PropType<boolean | import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
620
620
  default: any;
621
621
  };
622
622
  onResize: {
@@ -693,11 +693,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
693
693
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
694
694
  rows: NumberConstructor;
695
695
  autosize: {
696
- type: import("vue").PropType<import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
696
+ type: import("vue").PropType<boolean | import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
697
697
  default: any;
698
698
  };
699
699
  autoSize: {
700
- type: import("vue").PropType<import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
700
+ type: import("vue").PropType<boolean | import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
701
701
  default: any;
702
702
  };
703
703
  onResize: {
@@ -2669,49 +2669,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
2669
2669
  autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
2670
2670
  arrowPointAtCenter: boolean;
2671
2671
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
2672
- DtIcon: import("vue").DefineComponent<{
2673
- iconClass: {
2674
- type: StringConstructor;
2675
- required: true;
2676
- };
2677
- className: {
2678
- type: (StringConstructor | ArrayConstructor)[];
2679
- default: string;
2680
- };
2681
- color: {
2682
- type: StringConstructor;
2683
- default: string;
2684
- };
2685
- size: {
2686
- type: NumberConstructor;
2687
- default: number;
2688
- };
2689
- }, {
2690
- isSvgIcon: import("vue").ComputedRef<boolean>;
2691
- iconName: import("vue").ComputedRef<string>;
2692
- clsName: import("vue").ComputedRef<string>;
2693
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2694
- iconClass: {
2695
- type: StringConstructor;
2696
- required: true;
2697
- };
2698
- className: {
2699
- type: (StringConstructor | ArrayConstructor)[];
2700
- default: string;
2701
- };
2702
- color: {
2703
- type: StringConstructor;
2704
- default: string;
2705
- };
2706
- size: {
2707
- type: NumberConstructor;
2708
- default: number;
2709
- };
2710
- }>>, {
2711
- className: string | unknown[];
2712
- color: string;
2713
- size: number;
2714
- }>;
2715
2672
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "fullscreen")[], "cancel" | "fullscreen", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2716
2673
  canFullscreen: {
2717
2674
  type: BooleanConstructor;
@@ -56,15 +56,11 @@ declare const _default: import("vue").DefineComponent<{
56
56
  'basic-form--compact': boolean;
57
57
  'basic-form--search': boolean;
58
58
  })[]>;
59
- formModel: {
60
- [x: string]: any;
61
- };
59
+ formModel: Recordable<any>;
62
60
  getLayout: import("vue").ComputedRef<"vertical" | "horizontal" | "inline">;
63
61
  getProps: import("vue").ComputedRef<FormProps>;
64
62
  getSchema: import("vue").ComputedRef<FormSchema[]>;
65
- defaultValue: Ref<{
66
- [x: string]: any;
67
- }>;
63
+ defaultValue: Ref<Recordable<any>>;
68
64
  formActionMethods: FormActionType;
69
65
  formElRef: any;
70
66
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -8,7 +8,8 @@ import { useSource } from './source';
8
8
  import { useCurd } from './curd';
9
9
  import { export2Excel } from './excel';
10
10
  import { DtIframe } from './iframe';
11
+ import { useDialog } from './dialog';
11
12
  export declare function initComponents(): {
12
13
  install(app: App): void;
13
14
  };
14
- export { DtBaseRouter, DtIcon, DtPickIcon, DtModal, DtForm, DtTable, FormButtons, DtIframe, useForm, useTable, useSource, useCurd, useModal, useModalOut, export2Excel };
15
+ export { DtBaseRouter, DtIcon, DtPickIcon, DtModal, DtForm, DtTable, FormButtons, DtIframe, useForm, useTable, useSource, useCurd, useModal, useModalOut, export2Excel, useDialog };
@@ -283,49 +283,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
283
283
  autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
284
284
  arrowPointAtCenter: boolean;
285
285
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
286
- DtIcon: import("vue").DefineComponent<{
287
- iconClass: {
288
- type: StringConstructor;
289
- required: true;
290
- };
291
- className: {
292
- type: (StringConstructor | ArrayConstructor)[];
293
- default: string;
294
- };
295
- color: {
296
- type: StringConstructor;
297
- default: string;
298
- };
299
- size: {
300
- type: NumberConstructor;
301
- default: number;
302
- };
303
- }, {
304
- isSvgIcon: import("vue").ComputedRef<boolean>;
305
- iconName: import("vue").ComputedRef<string>;
306
- clsName: import("vue").ComputedRef<string>;
307
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
308
- iconClass: {
309
- type: StringConstructor;
310
- required: true;
311
- };
312
- className: {
313
- type: (StringConstructor | ArrayConstructor)[];
314
- default: string;
315
- };
316
- color: {
317
- type: StringConstructor;
318
- default: string;
319
- };
320
- size: {
321
- type: NumberConstructor;
322
- default: number;
323
- };
324
- }>>, {
325
- className: string | unknown[];
326
- color: string;
327
- size: number;
328
- }>;
329
286
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "fullscreen")[], "cancel" | "fullscreen", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
330
287
  canFullscreen: {
331
288
  type: BooleanConstructor;
@@ -1015,49 +1015,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
1015
1015
  autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
1016
1016
  arrowPointAtCenter: boolean;
1017
1017
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
1018
- DtIcon: import("vue").DefineComponent<{
1019
- iconClass: {
1020
- type: StringConstructor;
1021
- required: true;
1022
- };
1023
- className: {
1024
- type: (StringConstructor | ArrayConstructor)[];
1025
- default: string;
1026
- };
1027
- color: {
1028
- type: StringConstructor;
1029
- default: string;
1030
- };
1031
- size: {
1032
- type: NumberConstructor;
1033
- default: number;
1034
- };
1035
- }, {
1036
- isSvgIcon: import("vue").ComputedRef<boolean>;
1037
- iconName: import("vue").ComputedRef<string>;
1038
- clsName: import("vue").ComputedRef<string>;
1039
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1040
- iconClass: {
1041
- type: StringConstructor;
1042
- required: true;
1043
- };
1044
- className: {
1045
- type: (StringConstructor | ArrayConstructor)[];
1046
- default: string;
1047
- };
1048
- color: {
1049
- type: StringConstructor;
1050
- default: string;
1051
- };
1052
- size: {
1053
- type: NumberConstructor;
1054
- default: number;
1055
- };
1056
- }>>, {
1057
- className: string | unknown[];
1058
- color: string;
1059
- size: number;
1060
- }>;
1061
1018
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "fullscreen")[], "cancel" | "fullscreen", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1062
1019
  canFullscreen: {
1063
1020
  type: BooleanConstructor;
@@ -2,6 +2,6 @@ import { Recordable } from "@dt-frames/core";
2
2
  export declare type TableParamsType = {
3
3
  pagination: any;
4
4
  showBtnLoading: boolean;
5
- sort: Recordable;
5
+ sort: Recordable[];
6
6
  filter: any;
7
7
  };
@@ -1,3 +1,3 @@
1
1
  import { useTable } from './src/hooks/useTable';
2
2
  import DtTable from "./src/index";
3
- export { DtTable, useTable };
3
+ export { DtTable, useTable, };
@@ -1,3 +1,4 @@
1
+ import { nextTick } from 'vue';
1
2
  import { BasicColumn } from '../../types/table.type';
2
3
  import { CheckboxChangeEvent } from 'ant-design-vue/lib/checkbox/interface';
3
4
  declare const _sfc_main: import("vue").DefineComponent<{}, {
@@ -201,7 +202,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
201
202
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
202
203
  };
203
204
  $forceUpdate: () => void;
204
- $nextTick: typeof import("vue").nextTick;
205
+ $nextTick: typeof nextTick;
205
206
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
206
207
  } & Readonly<import("vue").ExtractPropTypes<{
207
208
  title: import("vue-types").VueTypeValidableDef<any>;
@@ -461,7 +462,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
461
462
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
462
463
  };
463
464
  $forceUpdate: () => void;
464
- $nextTick: typeof import("vue").nextTick;
465
+ $nextTick: typeof nextTick;
465
466
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
466
467
  } & Readonly<import("vue").ExtractPropTypes<{
467
468
  content: import("vue-types").VueTypeValidableDef<any>;
@@ -707,7 +708,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
707
708
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
708
709
  };
709
710
  $forceUpdate: () => void;
710
- $nextTick: typeof import("vue").nextTick;
711
+ $nextTick: typeof nextTick;
711
712
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
712
713
  } & Readonly<import("vue").ExtractPropTypes<{
713
714
  indeterminate: {
@@ -998,7 +999,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
998
999
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
999
1000
  };
1000
1001
  $forceUpdate: () => void;
1001
- $nextTick: typeof import("vue").nextTick;
1002
+ $nextTick: typeof nextTick;
1002
1003
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
1003
1004
  } & Readonly<import("vue").ExtractPropTypes<{
1004
1005
  prefixCls: StringConstructor;
@@ -1250,7 +1251,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
1250
1251
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
1251
1252
  };
1252
1253
  $forceUpdate: () => void;
1253
- $nextTick: typeof import("vue").nextTick;
1254
+ $nextTick: typeof nextTick;
1254
1255
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
1255
1256
  } & Readonly<import("vue").ExtractPropTypes<{
1256
1257
  prefixCls: StringConstructor;
@@ -6,7 +6,7 @@ export declare function useColumns(propsRef: ComputedRef<BasicTableProps>, getPa
6
6
  getViewColumns: ComputedRef<BasicColumn[]>;
7
7
  getColumnsRef: ComputedRef<BasicColumn[]>;
8
8
  getColumns: (opt?: SetColumnsParams) => BasicColumn[];
9
- setColumns: (columnList: Partial<BasicColumn>[] | string[]) => void;
9
+ setColumns: (columnList?: Partial<BasicColumn>[] | string[]) => void;
10
10
  setCacheColumnsByField: (dataIndex: string | undefined, value: Partial<BasicColumn>) => void;
11
11
  getCacheColumns: () => BasicColumn[];
12
12
  };
@@ -8,9 +8,7 @@ declare type ActionsType = {
8
8
  clearSelectedRowKeys: () => void;
9
9
  };
10
10
  export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { getPaginationInfo, setPagination, clearSelectedRowKeys, }: ActionsType, emit: any): {
11
- getDataSourceRef: ComputedRef<{
12
- [x: string]: any;
13
- }[]>;
11
+ getDataSourceRef: ComputedRef<Recordable<any>[]>;
14
12
  handleTableChange: (pagination: PaginationProps, filters: Partial<Recordable<string[]>>, sorter: SorterResult) => any;
15
13
  };
16
14
  export {};
@@ -0,0 +1,2 @@
1
+ import { BasicColumn, CellFormat } from "../types/table.type";
2
+ export declare function useHeaderCode(code: string, templates: CellFormat, changeColumns: (rows: BasicColumn[]) => void): void;
@@ -1,3 +1,4 @@
1
+ import { Recordable } from "@dt-frames/core";
1
2
  import type { TableRowSelection } from 'ant-design-vue/lib/table/interface';
2
3
  import { ComputedRef } from "vue";
3
4
  import { BasicTableProps } from "../types/table.type";
@@ -6,8 +7,6 @@ export declare function useRowSelection(propsRef: ComputedRef<BasicTableProps>,
6
7
  clearSelectedRowKeys: () => void;
7
8
  getRowSelection: () => TableRowSelection<any>;
8
9
  getSelectRowKeys: () => string[];
9
- getSelectRows: () => {
10
- [x: string]: any;
11
- }[];
10
+ getSelectRows: () => Recordable<any>[];
12
11
  setSelectedRowKeys: (rowKeys: string[]) => void;
13
12
  };
@@ -54,6 +54,12 @@ declare const _default: import("vue").DefineComponent<{
54
54
  type: import("vue").PropType<Recordable<any>>;
55
55
  default: any;
56
56
  };
57
+ columnCode: {
58
+ type: StringConstructor;
59
+ };
60
+ templates: {
61
+ type: import("vue").PropType<import("./types/table.type").CellFormat>;
62
+ };
57
63
  columns: {
58
64
  type: import("vue").PropType<import("./types/table.type").BasicColumn[]>;
59
65
  default: () => any[];
@@ -278,6 +284,8 @@ declare const _default: import("vue").DefineComponent<{
278
284
  minWidth?: number;
279
285
  maxWidth?: number;
280
286
  defSort?: any;
287
+ columnCode?: string;
288
+ templates?: import("./types/table.type").CellFormat;
281
289
  rowClassName?: (record: any, index: number) => string;
282
290
  operations?: unknown;
283
291
  toolbar?: import("../../forms").ButtonProps[];
@@ -341,9 +349,7 @@ declare const _default: import("vue").DefineComponent<{
341
349
  'onUpdate:current': import("vue").PropType<(current: number) => void>;
342
350
  'onUpdate:pageSize': import("vue").PropType<(size: number) => void>;
343
351
  }>>, filters: Partial<Recordable<string[]>>, sorter: import("./types/table.type").SorterResult) => any;
344
- getSelectRows: () => {
345
- [x: string]: any;
346
- }[];
352
+ getSelectRows: () => Recordable<any>[];
347
353
  handleResizeColumn: (w: any, col: any) => void;
348
354
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("register" | "columns-change" | "selection-change")[], "register" | "columns-change" | "selection-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
349
355
  clickRowSelect: {
@@ -398,6 +404,12 @@ declare const _default: import("vue").DefineComponent<{
398
404
  type: import("vue").PropType<Recordable<any>>;
399
405
  default: any;
400
406
  };
407
+ columnCode: {
408
+ type: StringConstructor;
409
+ };
410
+ templates: {
411
+ type: import("vue").PropType<import("./types/table.type").CellFormat>;
412
+ };
401
413
  columns: {
402
414
  type: import("vue").PropType<import("./types/table.type").BasicColumn[]>;
403
415
  default: () => any[];
@@ -1,7 +1,7 @@
1
1
  import { Recordable } from '@dt-frames/core';
2
2
  import { PropType } from 'vue';
3
3
  import type { TableRowSelection } from 'ant-design-vue/lib/table/interface';
4
- import { ActionType, BasicColumn, BtnsType, SizeType } from './types/table.type';
4
+ import { ActionType, BasicColumn, BtnsType, CellFormat, SizeType } from './types/table.type';
5
5
  import { ButtonProps } from '../../forms';
6
6
  import { DownloadType } from './types/tableHeader.type';
7
7
  export declare const TableProps: {
@@ -57,6 +57,12 @@ export declare const TableProps: {
57
57
  type: PropType<Recordable<any>>;
58
58
  default: any;
59
59
  };
60
+ columnCode: {
61
+ type: StringConstructor;
62
+ };
63
+ templates: {
64
+ type: PropType<CellFormat>;
65
+ };
60
66
  columns: {
61
67
  type: PropType<BasicColumn[]>;
62
68
  default: () => any[];