@vtj/ui 0.8.31 → 0.8.33
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/dist/index.mjs +23096 -3002
- package/dist/index.umd.js +17 -9
- package/dist/style.css +1 -1
- package/package.json +8 -4
- package/types/adapter.d.ts +6 -1
- package/types/components/action/Action.d.ts +0 -9
- package/types/components/action/Trigger.d.ts +0 -3
- package/types/components/action/types.d.ts +0 -1
- package/types/components/action-bar/ActionBar.d.ts +0 -9
- package/types/components/action-bar/types.d.ts +0 -1
- package/types/components/data-item/DataItem.d.ts +0 -4
- package/types/components/form/Form.d.ts +6 -6
- package/types/components/form/types.d.ts +2 -2
- package/types/components/grid/Grid.d.ts +181 -0
- package/types/components/grid/constants.d.ts +12 -0
- package/types/components/grid/hooks/index.d.ts +7 -0
- package/types/components/grid/hooks/useColumnSortable.d.ts +5 -0
- package/types/components/grid/hooks/useCustom.d.ts +289 -0
- package/types/components/grid/hooks/useEditRender.d.ts +11 -0
- package/types/components/grid/hooks/useProps.d.ts +114 -0
- package/types/components/grid/hooks/useRowSortable.d.ts +5 -0
- package/types/components/grid/hooks/useVxe.d.ts +6 -0
- package/types/components/grid/hooks/useVxeSlots.d.ts +1 -0
- package/types/components/grid/index.d.ts +4 -0
- package/types/components/grid/props.d.ts +119 -0
- package/types/components/grid/renderers/cell/index.d.ts +1 -0
- package/types/components/grid/renderers/edit/DateEdit.d.ts +18 -0
- package/types/components/grid/renderers/edit/InputEdit.d.ts +18 -0
- package/types/components/grid/renderers/edit/SelectEdit.d.ts +18 -0
- package/types/components/grid/renderers/edit/index.d.ts +1 -0
- package/types/components/grid/renderers/filter/DateFilter.d.ts +18 -0
- package/types/components/grid/renderers/filter/InputFilter.d.ts +18 -0
- package/types/components/grid/renderers/filter/index.d.ts +1 -0
- package/types/components/grid/types.d.ts +44 -0
- package/types/components/grid/utils.d.ts +18 -0
- package/types/components/index.d.ts +2 -0
- package/types/components/mask/Mask.d.ts +0 -4
- package/types/components/query-form/QueryForm.d.ts +224 -0
- package/types/components/query-form/hooks.d.ts +14 -0
- package/types/components/query-form/index.d.ts +4 -0
- package/types/components/query-form/props.d.ts +12 -0
- package/types/components/query-form/types.d.ts +9 -0
- package/types/components/shared.d.ts +1 -1
- package/types/components/tabs/Tabs.d.ts +0 -4
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/useDefer.d.ts +11 -0
- package/types/version.d.ts +2 -2
- package/types/components/chart/types.d.ts +0 -18
- package/types/components/chart/useChart.d.ts +0 -8
- /package/types/components/{chart → grid/renderers}/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.33",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=16.0.0"
|
|
@@ -9,15 +9,19 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@vueuse/core": "~10.9.0",
|
|
11
11
|
"element-plus": "~2.7.0",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"sortablejs": "~1.15.2",
|
|
13
|
+
"vxe-table": "~4.6.16",
|
|
14
|
+
"vxe-table-plugin-menus": "~4.0.3",
|
|
15
|
+
"@vtj/icons": "~0.8.33",
|
|
16
|
+
"@vtj/utils": "~0.8.33"
|
|
14
17
|
},
|
|
15
18
|
"devDependencies": {
|
|
16
19
|
"@types/qrcode": "^1.5.5",
|
|
20
|
+
"@types/sortablejs": "~1.15.8",
|
|
17
21
|
"qrcode": "~1.5.3",
|
|
18
22
|
"vue": "~3.4.15",
|
|
19
23
|
"vue-router": "~4.3.0",
|
|
20
|
-
"@vtj/cli": "~0.8.
|
|
24
|
+
"@vtj/cli": "~0.8.13"
|
|
21
25
|
},
|
|
22
26
|
"files": [
|
|
23
27
|
"dist",
|
package/types/adapter.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Plugin, InjectionKey } from 'vue';
|
|
2
|
+
import { GridCustomInfo } from './components';
|
|
3
|
+
import { VXETableConfigOptions } from 'vxe-table';
|
|
2
4
|
|
|
3
5
|
export declare const ADAPTER_KEY: InjectionKey<Adapter>;
|
|
4
|
-
export declare const ADAPTER_KEY_STRING = "__VTJ_UI_ADAPTER__";
|
|
5
6
|
export interface UploaderResponse {
|
|
6
7
|
url: string;
|
|
7
8
|
name?: string;
|
|
@@ -11,5 +12,9 @@ export type Uploader = (file: File) => Promise<string | UploaderResponse | null>
|
|
|
11
12
|
export declare function useAdapter(): Adapter;
|
|
12
13
|
export interface Adapter {
|
|
13
14
|
uploader?: Uploader;
|
|
15
|
+
vxeConfig?: VXETableConfigOptions;
|
|
16
|
+
getCustom?: (id: string) => Promise<GridCustomInfo>;
|
|
17
|
+
saveCustom?: (info: GridCustomInfo) => Promise<any>;
|
|
18
|
+
[index: string]: any;
|
|
14
19
|
}
|
|
15
20
|
export declare const AdapterPlugin: Plugin;
|
|
@@ -81,7 +81,6 @@ declare const _default: DefineComponent<{
|
|
|
81
81
|
};
|
|
82
82
|
type: {
|
|
83
83
|
type: PropType<BaseType>;
|
|
84
|
-
default: string;
|
|
85
84
|
};
|
|
86
85
|
background: {
|
|
87
86
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -171,7 +170,6 @@ declare const _default: DefineComponent<{
|
|
|
171
170
|
};
|
|
172
171
|
type: {
|
|
173
172
|
type: PropType<BaseType>;
|
|
174
|
-
default: string;
|
|
175
173
|
};
|
|
176
174
|
background: {
|
|
177
175
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -262,7 +260,6 @@ declare const _default: DefineComponent<{
|
|
|
262
260
|
};
|
|
263
261
|
type: {
|
|
264
262
|
type: PropType<BaseType>;
|
|
265
|
-
default: string;
|
|
266
263
|
};
|
|
267
264
|
background: {
|
|
268
265
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -352,7 +349,6 @@ declare const _default: DefineComponent<{
|
|
|
352
349
|
};
|
|
353
350
|
type: {
|
|
354
351
|
type: PropType<BaseType>;
|
|
355
|
-
default: string;
|
|
356
352
|
};
|
|
357
353
|
background: {
|
|
358
354
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -442,7 +438,6 @@ declare const _default: DefineComponent<{
|
|
|
442
438
|
};
|
|
443
439
|
type: {
|
|
444
440
|
type: PropType<BaseType>;
|
|
445
|
-
default: string;
|
|
446
441
|
};
|
|
447
442
|
background: {
|
|
448
443
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -532,7 +527,6 @@ declare const _default: DefineComponent<{
|
|
|
532
527
|
};
|
|
533
528
|
type: {
|
|
534
529
|
type: PropType<BaseType>;
|
|
535
|
-
default: string;
|
|
536
530
|
};
|
|
537
531
|
background: {
|
|
538
532
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -622,7 +616,6 @@ declare const _default: DefineComponent<{
|
|
|
622
616
|
};
|
|
623
617
|
type: {
|
|
624
618
|
type: PropType<BaseType>;
|
|
625
|
-
default: string;
|
|
626
619
|
};
|
|
627
620
|
background: {
|
|
628
621
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -712,7 +705,6 @@ declare const _default: DefineComponent<{
|
|
|
712
705
|
};
|
|
713
706
|
type: {
|
|
714
707
|
type: PropType<BaseType>;
|
|
715
|
-
default: string;
|
|
716
708
|
};
|
|
717
709
|
background: {
|
|
718
710
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -728,7 +720,6 @@ declare const _default: DefineComponent<{
|
|
|
728
720
|
onCommand?: ((item: ActionMenuItem) => any) | undefined;
|
|
729
721
|
}, {
|
|
730
722
|
size: BaseSize;
|
|
731
|
-
type: BaseType;
|
|
732
723
|
background: "hover" | "always" | "none";
|
|
733
724
|
circle: boolean;
|
|
734
725
|
mode: ActionMode;
|
|
@@ -81,7 +81,6 @@ declare const _default: DefineComponent<{
|
|
|
81
81
|
};
|
|
82
82
|
type: {
|
|
83
83
|
type: PropType<BaseType>;
|
|
84
|
-
default: string;
|
|
85
84
|
};
|
|
86
85
|
background: {
|
|
87
86
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -172,7 +171,6 @@ declare const _default: DefineComponent<{
|
|
|
172
171
|
};
|
|
173
172
|
type: {
|
|
174
173
|
type: PropType<BaseType>;
|
|
175
|
-
default: string;
|
|
176
174
|
};
|
|
177
175
|
background: {
|
|
178
176
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -188,7 +186,6 @@ declare const _default: DefineComponent<{
|
|
|
188
186
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
189
187
|
}, {
|
|
190
188
|
size: BaseSize;
|
|
191
|
-
type: BaseType;
|
|
192
189
|
background: "hover" | "always" | "none";
|
|
193
190
|
circle: boolean;
|
|
194
191
|
mode: ActionMode;
|
|
@@ -20,7 +20,6 @@ declare const _default: DefineComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
type: {
|
|
22
22
|
type: PropType<BaseType>;
|
|
23
|
-
default: string;
|
|
24
23
|
};
|
|
25
24
|
background: {
|
|
26
25
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -107,7 +106,6 @@ declare const _default: DefineComponent<{
|
|
|
107
106
|
};
|
|
108
107
|
type: {
|
|
109
108
|
type: PropType<BaseType>;
|
|
110
|
-
default: string;
|
|
111
109
|
};
|
|
112
110
|
background: {
|
|
113
111
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -247,7 +245,6 @@ declare const _default: DefineComponent<{
|
|
|
247
245
|
};
|
|
248
246
|
type: {
|
|
249
247
|
type: PropType<BaseType>;
|
|
250
|
-
default: string;
|
|
251
248
|
};
|
|
252
249
|
background: {
|
|
253
250
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -337,7 +334,6 @@ declare const _default: DefineComponent<{
|
|
|
337
334
|
};
|
|
338
335
|
type: {
|
|
339
336
|
type: PropType<BaseType>;
|
|
340
|
-
default: string;
|
|
341
337
|
};
|
|
342
338
|
background: {
|
|
343
339
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -364,7 +360,6 @@ declare const _default: DefineComponent<{
|
|
|
364
360
|
};
|
|
365
361
|
type: {
|
|
366
362
|
type: PropType<BaseType>;
|
|
367
|
-
default: string;
|
|
368
363
|
};
|
|
369
364
|
background: {
|
|
370
365
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -451,7 +446,6 @@ declare const _default: DefineComponent<{
|
|
|
451
446
|
};
|
|
452
447
|
type: {
|
|
453
448
|
type: PropType<BaseType>;
|
|
454
|
-
default: string;
|
|
455
449
|
};
|
|
456
450
|
background: {
|
|
457
451
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -591,7 +585,6 @@ declare const _default: DefineComponent<{
|
|
|
591
585
|
};
|
|
592
586
|
type: {
|
|
593
587
|
type: PropType<BaseType>;
|
|
594
|
-
default: string;
|
|
595
588
|
};
|
|
596
589
|
background: {
|
|
597
590
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -681,7 +674,6 @@ declare const _default: DefineComponent<{
|
|
|
681
674
|
};
|
|
682
675
|
type: {
|
|
683
676
|
type: PropType<BaseType>;
|
|
684
|
-
default: string;
|
|
685
677
|
};
|
|
686
678
|
background: {
|
|
687
679
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -696,7 +688,6 @@ declare const _default: DefineComponent<{
|
|
|
696
688
|
}>>>, menu: ActionMenuItem) => any) | undefined;
|
|
697
689
|
}, {
|
|
698
690
|
size: BaseSize;
|
|
699
|
-
type: BaseType;
|
|
700
691
|
background: "hover" | "always" | "none";
|
|
701
692
|
circle: boolean;
|
|
702
693
|
mode: ActionMode;
|
|
@@ -121,7 +121,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
121
121
|
};
|
|
122
122
|
type: {
|
|
123
123
|
type: PropType<BaseType>;
|
|
124
|
-
default: string;
|
|
125
124
|
};
|
|
126
125
|
background: {
|
|
127
126
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -211,7 +210,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
211
210
|
};
|
|
212
211
|
type: {
|
|
213
212
|
type: PropType<BaseType>;
|
|
214
|
-
default: string;
|
|
215
213
|
};
|
|
216
214
|
background: {
|
|
217
215
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -342,7 +340,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
342
340
|
};
|
|
343
341
|
type: {
|
|
344
342
|
type: PropType<BaseType>;
|
|
345
|
-
default: string;
|
|
346
343
|
};
|
|
347
344
|
background: {
|
|
348
345
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -432,7 +429,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
432
429
|
};
|
|
433
430
|
type: {
|
|
434
431
|
type: PropType<BaseType>;
|
|
435
|
-
default: string;
|
|
436
432
|
};
|
|
437
433
|
background: {
|
|
438
434
|
type: PropType<"hover" | "always" | "none">;
|
|
@@ -18,11 +18,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
20
|
submitText: {
|
|
21
|
-
type:
|
|
21
|
+
type: PropType<string | null>;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
resetText: {
|
|
25
|
-
type:
|
|
25
|
+
type: PropType<string | null>;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
submitMethod: {
|
|
@@ -57,11 +57,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
57
57
|
default: boolean;
|
|
58
58
|
};
|
|
59
59
|
submitText: {
|
|
60
|
-
type:
|
|
60
|
+
type: PropType<string | null>;
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
63
|
resetText: {
|
|
64
|
-
type:
|
|
64
|
+
type: PropType<string | null>;
|
|
65
65
|
default: string;
|
|
66
66
|
};
|
|
67
67
|
submitMethod: {
|
|
@@ -80,8 +80,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
80
80
|
inline: boolean;
|
|
81
81
|
model: Record<string, any>;
|
|
82
82
|
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
|
83
|
-
submitText: string;
|
|
84
|
-
resetText: string;
|
|
83
|
+
submitText: string | null;
|
|
84
|
+
resetText: string | null;
|
|
85
85
|
}, {}>, {
|
|
86
86
|
default?(_: {}): any;
|
|
87
87
|
footer?(_: {}): any;
|
|
@@ -34,14 +34,14 @@ export declare const formProps: {
|
|
|
34
34
|
* 提交按钮文本
|
|
35
35
|
*/
|
|
36
36
|
submitText: {
|
|
37
|
-
type:
|
|
37
|
+
type: PropType<string | null>;
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* 重置按钮文本
|
|
42
42
|
*/
|
|
43
43
|
resetText: {
|
|
44
|
-
type:
|
|
44
|
+
type: PropType<string | null>;
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { VxeGridInstance, GridColumns, GridCustomInfo, GridCellRenders, GridSortableEvent } from './types';
|
|
2
|
+
import { DefineComponent, PropType, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import { Options } from 'sortablejs';
|
|
4
|
+
import { VxeTableDataRow, VxeTableConstructor, VxeGridConstructor } from 'vxe-table';
|
|
5
|
+
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
7
|
+
columns: {
|
|
8
|
+
type: PropType<GridColumns>;
|
|
9
|
+
default(): GridColumns;
|
|
10
|
+
};
|
|
11
|
+
rowSortable: {
|
|
12
|
+
type: PropType<boolean | Options>;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
columnSortable: {
|
|
16
|
+
type: PropType<boolean | Options>;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
customable: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
};
|
|
22
|
+
getCustom: {
|
|
23
|
+
type: PropType<(id: string) => Promise< GridCustomInfo>>;
|
|
24
|
+
};
|
|
25
|
+
saveCustom: {
|
|
26
|
+
type: PropType<(info: GridCustomInfo) => Promise<any>>;
|
|
27
|
+
};
|
|
28
|
+
resizable: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
query: {
|
|
33
|
+
type: PropType<(params: import("vxe-table/types/grid").VxeGridPropTypes.ProxyAjaxQueryParams<VxeTableDataRow>) => Promise<any>>;
|
|
34
|
+
};
|
|
35
|
+
queryAll: {
|
|
36
|
+
type: PropType<(params: import("vxe-table/types/grid").VxeGridPropTypes.ProxyAjaxQueryAllParams<VxeTableDataRow>) => Promise<any>>;
|
|
37
|
+
};
|
|
38
|
+
delete: {
|
|
39
|
+
type: PropType<(params: import("vxe-table/types/grid").VxeGridPropTypes.ProxyAjaxDeleteParams<VxeTableDataRow>) => Promise<any>>;
|
|
40
|
+
};
|
|
41
|
+
save: {
|
|
42
|
+
type: PropType<(params: import("vxe-table/types/grid").VxeGridPropTypes.ProxyAjaxSaveParams<VxeTableDataRow>) => Promise<any>>;
|
|
43
|
+
};
|
|
44
|
+
pager: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
};
|
|
47
|
+
virtual: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
cellRenders: {
|
|
52
|
+
type: PropType<GridCellRenders>;
|
|
53
|
+
};
|
|
54
|
+
editRenders: {
|
|
55
|
+
type: ObjectConstructor;
|
|
56
|
+
};
|
|
57
|
+
editable: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
queryModel: {
|
|
62
|
+
type: PropType<Record<string, any>>;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
vxeRef: Ref<VxeGridInstance | undefined>;
|
|
66
|
+
rowSortable: Ref<any>;
|
|
67
|
+
columnSortable: Ref<any[]>;
|
|
68
|
+
insertActived: (record?: any, row?: any) => Promise<void>;
|
|
69
|
+
getProxyInfo: () => {
|
|
70
|
+
data: any[];
|
|
71
|
+
filter: any;
|
|
72
|
+
form: any;
|
|
73
|
+
sort: import("vxe-table/types/table").VxeTableDefines.SortCheckedParams<any> | {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
76
|
+
sorts: import("vxe-table/types/table").VxeTableDefines.SortCheckedParams<any>[];
|
|
77
|
+
pager: {
|
|
78
|
+
total: number;
|
|
79
|
+
pageSize: number;
|
|
80
|
+
currentPage: number;
|
|
81
|
+
};
|
|
82
|
+
pendingRecords: any[];
|
|
83
|
+
} | null | undefined;
|
|
84
|
+
reload: () => Promise<void>;
|
|
85
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
86
|
+
rowSort: (e: GridSortableEvent) => void;
|
|
87
|
+
columnSort: (e: GridSortableEvent) => void;
|
|
88
|
+
cellSelected: (params: any) => void;
|
|
89
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
90
|
+
columns: {
|
|
91
|
+
type: PropType<GridColumns>;
|
|
92
|
+
default(): GridColumns;
|
|
93
|
+
};
|
|
94
|
+
rowSortable: {
|
|
95
|
+
type: PropType<boolean | Options>;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
columnSortable: {
|
|
99
|
+
type: PropType<boolean | Options>;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
customable: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
};
|
|
105
|
+
getCustom: {
|
|
106
|
+
type: PropType<(id: string) => Promise< GridCustomInfo>>;
|
|
107
|
+
};
|
|
108
|
+
saveCustom: {
|
|
109
|
+
type: PropType<(info: GridCustomInfo) => Promise<any>>;
|
|
110
|
+
};
|
|
111
|
+
resizable: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
query: {
|
|
116
|
+
type: PropType<(params: import("vxe-table/types/grid").VxeGridPropTypes.ProxyAjaxQueryParams<VxeTableDataRow>) => Promise<any>>;
|
|
117
|
+
};
|
|
118
|
+
queryAll: {
|
|
119
|
+
type: PropType<(params: import("vxe-table/types/grid").VxeGridPropTypes.ProxyAjaxQueryAllParams<VxeTableDataRow>) => Promise<any>>;
|
|
120
|
+
};
|
|
121
|
+
delete: {
|
|
122
|
+
type: PropType<(params: import("vxe-table/types/grid").VxeGridPropTypes.ProxyAjaxDeleteParams<VxeTableDataRow>) => Promise<any>>;
|
|
123
|
+
};
|
|
124
|
+
save: {
|
|
125
|
+
type: PropType<(params: import("vxe-table/types/grid").VxeGridPropTypes.ProxyAjaxSaveParams<VxeTableDataRow>) => Promise<any>>;
|
|
126
|
+
};
|
|
127
|
+
pager: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
};
|
|
130
|
+
virtual: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
cellRenders: {
|
|
135
|
+
type: PropType<GridCellRenders>;
|
|
136
|
+
};
|
|
137
|
+
editRenders: {
|
|
138
|
+
type: ObjectConstructor;
|
|
139
|
+
};
|
|
140
|
+
editable: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
queryModel: {
|
|
145
|
+
type: PropType<Record<string, any>>;
|
|
146
|
+
};
|
|
147
|
+
}>> & {
|
|
148
|
+
onCellSelected?: ((params: any) => any) | undefined;
|
|
149
|
+
onRowSort?: ((e: GridSortableEvent) => any) | undefined;
|
|
150
|
+
onColumnSort?: ((e: GridSortableEvent) => any) | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
resizable: boolean;
|
|
153
|
+
editable: boolean;
|
|
154
|
+
pager: boolean;
|
|
155
|
+
columns: GridColumns;
|
|
156
|
+
rowSortable: boolean | Options;
|
|
157
|
+
columnSortable: boolean | Options;
|
|
158
|
+
customable: boolean;
|
|
159
|
+
virtual: boolean;
|
|
160
|
+
}, {}>, Partial<Record<string, (_: {
|
|
161
|
+
[x: string]: any;
|
|
162
|
+
$table: VxeTableConstructor<any>;
|
|
163
|
+
$grid: VxeGridConstructor<any> | null | undefined;
|
|
164
|
+
row: any;
|
|
165
|
+
rowIndex: number;
|
|
166
|
+
$rowIndex: number;
|
|
167
|
+
_rowIndex: number;
|
|
168
|
+
column: import("vxe-table/types/table").VxeTableDefines.ColumnInfo<any>;
|
|
169
|
+
columnIndex: number;
|
|
170
|
+
$columnIndex: number;
|
|
171
|
+
_columnIndex: number;
|
|
172
|
+
checked?: boolean | undefined;
|
|
173
|
+
indeterminate?: boolean | undefined;
|
|
174
|
+
items: any[];
|
|
175
|
+
}) => any>>>;
|
|
176
|
+
export default _default;
|
|
177
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
178
|
+
new (): {
|
|
179
|
+
$slots: S;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MaybeRef, Ref } from 'vue';
|
|
2
|
+
import { VxeGridInstance, GridProps, GridEmits, GridSortableEvent } from '../types';
|
|
3
|
+
import { Emits } from '../../shared';
|
|
4
|
+
|
|
5
|
+
export declare function useColumnSortable(vxeRef: MaybeRef<VxeGridInstance | undefined>, props: GridProps, emit: Emits<GridEmits>, onChange?: (e: GridSortableEvent) => void): Ref<any[]>;
|