@gx-design-vue/pro-table 0.1.12 → 0.1.13
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/ProTable.d.ts +51 -62
- package/dist/pro-table.es.js +4 -1
- package/dist/pro-table.umd.js +7 -7
- package/package.json +1 -1
package/dist/ProTable.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
1
2
|
import type { Key } from './_utils';
|
|
2
3
|
import type { OptionConfig } from './types/TableTypings';
|
|
3
4
|
import type { ProColumnsType } from './types/ColumnTypings';
|
|
@@ -53,7 +54,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
53
54
|
};
|
|
54
55
|
tableClassName: import("vue").PropType<string | undefined>;
|
|
55
56
|
tableStyle: {
|
|
56
|
-
type: import("vue").PropType<
|
|
57
|
+
type: import("vue").PropType<CSSProperties | undefined>;
|
|
57
58
|
};
|
|
58
59
|
toolBarBtn: {
|
|
59
60
|
type: import("vue").PropType<ToolBarBtnRender>;
|
|
@@ -89,7 +90,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
89
90
|
showIndex: {
|
|
90
91
|
type: import("vue").PropType<boolean | undefined>;
|
|
91
92
|
default: boolean;
|
|
92
|
-
};
|
|
93
|
+
}; /**
|
|
94
|
+
* @Author gx12358
|
|
95
|
+
* @DateTime 2022/1/21
|
|
96
|
+
* @lastTime 2022/1/21
|
|
97
|
+
* @description Tabel-pagetion hooks 方法
|
|
98
|
+
*/
|
|
93
99
|
pageItemRender: {
|
|
94
100
|
type: import("vue").PropType<import("./types/SlotsTypings").PageItemRender | undefined>;
|
|
95
101
|
default: () => undefined;
|
|
@@ -100,7 +106,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
100
106
|
};
|
|
101
107
|
align: {
|
|
102
108
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType | undefined>;
|
|
103
|
-
default: string;
|
|
109
|
+
default: string; /**
|
|
110
|
+
* @Author gx12358
|
|
111
|
+
* @DateTime 2022/1/21
|
|
112
|
+
* @lastTime 2022/1/21
|
|
113
|
+
* @description Tabel-colums hooks 方法
|
|
114
|
+
*/
|
|
104
115
|
};
|
|
105
116
|
bordered: {
|
|
106
117
|
type: import("vue").PropType<boolean | undefined>;
|
|
@@ -117,7 +128,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
117
128
|
columnEmptyText: {
|
|
118
129
|
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText | undefined>;
|
|
119
130
|
default: boolean;
|
|
120
|
-
};
|
|
131
|
+
}; /**
|
|
132
|
+
* @Author gx12358
|
|
133
|
+
* @DateTime 2022/1/21
|
|
134
|
+
* @lastTime 2022/1/21
|
|
135
|
+
* @description Tabel-datasource hooks 方法
|
|
136
|
+
*/
|
|
121
137
|
onReset: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
122
138
|
onReload: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
123
139
|
onSubmit: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
@@ -188,12 +204,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
188
204
|
};
|
|
189
205
|
expandedRowRender: {
|
|
190
206
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").ExpandedRowRender<any>>;
|
|
191
|
-
default: any;
|
|
192
|
-
* @Author gx12358
|
|
193
|
-
* @DateTime 2022/1/21
|
|
194
|
-
* @lastTime 2022/1/21
|
|
195
|
-
* @description Tabel-loading hooks 方法
|
|
196
|
-
*/
|
|
207
|
+
default: any;
|
|
197
208
|
};
|
|
198
209
|
expandRowByClick: {
|
|
199
210
|
type: import("vue").PropType<boolean>;
|
|
@@ -222,12 +233,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
222
233
|
indentSize: {
|
|
223
234
|
type: import("vue").PropType<number>;
|
|
224
235
|
default: any;
|
|
225
|
-
};
|
|
226
|
-
* @Author gx12358
|
|
227
|
-
* @DateTime 2022/1/21
|
|
228
|
-
* @lastTime 2022/1/21
|
|
229
|
-
* @description Tabel-scroll hooks 方法
|
|
230
|
-
*/
|
|
236
|
+
};
|
|
231
237
|
expandIconColumnIndex: {
|
|
232
238
|
type: import("vue").PropType<number>;
|
|
233
239
|
default: any;
|
|
@@ -238,12 +244,6 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
238
244
|
};
|
|
239
245
|
expandedRowClassName: {
|
|
240
246
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
|
|
241
|
-
/**
|
|
242
|
-
* @Author gx12358
|
|
243
|
-
* @DateTime 2022/1/21
|
|
244
|
-
* @lastTime 2022/1/21
|
|
245
|
-
* @description Tabel-colums hooks 方法
|
|
246
|
-
*/
|
|
247
247
|
default: any;
|
|
248
248
|
};
|
|
249
249
|
childrenColumnName: {
|
|
@@ -284,12 +284,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
284
284
|
};
|
|
285
285
|
onChange: {
|
|
286
286
|
type: import("vue").PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: import("ant-design-vue/es/table/interface").SorterResult<any> | import("ant-design-vue/es/table/interface").SorterResult<any>[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void>;
|
|
287
|
-
default: any;
|
|
288
|
-
* @Author gx12358
|
|
289
|
-
* @DateTime 2022/1/21
|
|
290
|
-
* @lastTime 2022/1/21
|
|
291
|
-
* @description Tabel-datasource hooks 方法
|
|
292
|
-
*/
|
|
287
|
+
default: any;
|
|
293
288
|
};
|
|
294
289
|
onResizeColumn: {
|
|
295
290
|
type: import("vue").PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void>;
|
|
@@ -328,8 +323,8 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
328
323
|
color: StringConstructor;
|
|
329
324
|
transitionName: StringConstructor;
|
|
330
325
|
overlayStyle: {
|
|
331
|
-
type: import("vue").PropType<
|
|
332
|
-
default:
|
|
326
|
+
type: import("vue").PropType<CSSProperties>;
|
|
327
|
+
default: CSSProperties;
|
|
333
328
|
};
|
|
334
329
|
overlayClassName: StringConstructor;
|
|
335
330
|
openClassName: StringConstructor;
|
|
@@ -419,7 +414,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
419
414
|
};
|
|
420
415
|
tableClassName: import("vue").PropType<string | undefined>;
|
|
421
416
|
tableStyle: {
|
|
422
|
-
type: import("vue").PropType<
|
|
417
|
+
type: import("vue").PropType<CSSProperties | undefined>;
|
|
423
418
|
};
|
|
424
419
|
toolBarBtn: {
|
|
425
420
|
type: import("vue").PropType<ToolBarBtnRender>;
|
|
@@ -455,7 +450,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
455
450
|
showIndex: {
|
|
456
451
|
type: import("vue").PropType<boolean | undefined>;
|
|
457
452
|
default: boolean;
|
|
458
|
-
};
|
|
453
|
+
}; /**
|
|
454
|
+
* @Author gx12358
|
|
455
|
+
* @DateTime 2022/1/21
|
|
456
|
+
* @lastTime 2022/1/21
|
|
457
|
+
* @description Tabel-pagetion hooks 方法
|
|
458
|
+
*/
|
|
459
459
|
pageItemRender: {
|
|
460
460
|
type: import("vue").PropType<import("./types/SlotsTypings").PageItemRender | undefined>;
|
|
461
461
|
default: () => undefined;
|
|
@@ -466,7 +466,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
466
466
|
};
|
|
467
467
|
align: {
|
|
468
468
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType | undefined>;
|
|
469
|
-
default: string;
|
|
469
|
+
default: string; /**
|
|
470
|
+
* @Author gx12358
|
|
471
|
+
* @DateTime 2022/1/21
|
|
472
|
+
* @lastTime 2022/1/21
|
|
473
|
+
* @description Tabel-colums hooks 方法
|
|
474
|
+
*/
|
|
470
475
|
};
|
|
471
476
|
bordered: {
|
|
472
477
|
type: import("vue").PropType<boolean | undefined>;
|
|
@@ -483,7 +488,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
483
488
|
columnEmptyText: {
|
|
484
489
|
type: import("vue").PropType<import("./types/TableTypings").ProFieldEmptyText | undefined>;
|
|
485
490
|
default: boolean;
|
|
486
|
-
};
|
|
491
|
+
}; /**
|
|
492
|
+
* @Author gx12358
|
|
493
|
+
* @DateTime 2022/1/21
|
|
494
|
+
* @lastTime 2022/1/21
|
|
495
|
+
* @description Tabel-datasource hooks 方法
|
|
496
|
+
*/
|
|
487
497
|
onReset: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
488
498
|
onReload: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
489
499
|
onSubmit: import("vue").PropType<((params?: Partial<Record<string, any>> | undefined) => any) | undefined>;
|
|
@@ -554,12 +564,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
554
564
|
};
|
|
555
565
|
expandedRowRender: {
|
|
556
566
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").ExpandedRowRender<any>>;
|
|
557
|
-
default: any;
|
|
558
|
-
* @Author gx12358
|
|
559
|
-
* @DateTime 2022/1/21
|
|
560
|
-
* @lastTime 2022/1/21
|
|
561
|
-
* @description Tabel-loading hooks 方法
|
|
562
|
-
*/
|
|
567
|
+
default: any;
|
|
563
568
|
};
|
|
564
569
|
expandRowByClick: {
|
|
565
570
|
type: import("vue").PropType<boolean>;
|
|
@@ -588,12 +593,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
588
593
|
indentSize: {
|
|
589
594
|
type: import("vue").PropType<number>;
|
|
590
595
|
default: any;
|
|
591
|
-
};
|
|
592
|
-
* @Author gx12358
|
|
593
|
-
* @DateTime 2022/1/21
|
|
594
|
-
* @lastTime 2022/1/21
|
|
595
|
-
* @description Tabel-scroll hooks 方法
|
|
596
|
-
*/
|
|
596
|
+
};
|
|
597
597
|
expandIconColumnIndex: {
|
|
598
598
|
type: import("vue").PropType<number>;
|
|
599
599
|
default: any;
|
|
@@ -604,12 +604,6 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
604
604
|
};
|
|
605
605
|
expandedRowClassName: {
|
|
606
606
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
|
|
607
|
-
/**
|
|
608
|
-
* @Author gx12358
|
|
609
|
-
* @DateTime 2022/1/21
|
|
610
|
-
* @lastTime 2022/1/21
|
|
611
|
-
* @description Tabel-colums hooks 方法
|
|
612
|
-
*/
|
|
613
607
|
default: any;
|
|
614
608
|
};
|
|
615
609
|
childrenColumnName: {
|
|
@@ -650,12 +644,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
650
644
|
};
|
|
651
645
|
onChange: {
|
|
652
646
|
type: import("vue").PropType<(pagination: import("ant-design-vue/es/table/interface").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface").FilterValue | null>, sorter: import("ant-design-vue/es/table/interface").SorterResult<any> | import("ant-design-vue/es/table/interface").SorterResult<any>[], extra: import("ant-design-vue/es/table/interface").TableCurrentDataSource<any>) => void>;
|
|
653
|
-
default: any;
|
|
654
|
-
* @Author gx12358
|
|
655
|
-
* @DateTime 2022/1/21
|
|
656
|
-
* @lastTime 2022/1/21
|
|
657
|
-
* @description Tabel-datasource hooks 方法
|
|
658
|
-
*/
|
|
647
|
+
default: any;
|
|
659
648
|
};
|
|
660
649
|
onResizeColumn: {
|
|
661
650
|
type: import("vue").PropType<(w: number, col: import("ant-design-vue/es/table/interface").ColumnType<any>) => void>;
|
|
@@ -694,8 +683,8 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
694
683
|
color: StringConstructor;
|
|
695
684
|
transitionName: StringConstructor;
|
|
696
685
|
overlayStyle: {
|
|
697
|
-
type: import("vue").PropType<
|
|
698
|
-
default:
|
|
686
|
+
type: import("vue").PropType<CSSProperties>;
|
|
687
|
+
default: CSSProperties;
|
|
699
688
|
};
|
|
700
689
|
overlayClassName: StringConstructor;
|
|
701
690
|
openClassName: StringConstructor;
|
|
@@ -823,8 +812,8 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
823
812
|
color: StringConstructor;
|
|
824
813
|
transitionName: StringConstructor;
|
|
825
814
|
overlayStyle: {
|
|
826
|
-
type: import("vue").PropType<
|
|
827
|
-
default:
|
|
815
|
+
type: import("vue").PropType<CSSProperties>;
|
|
816
|
+
default: CSSProperties;
|
|
828
817
|
};
|
|
829
818
|
overlayClassName: StringConstructor;
|
|
830
819
|
openClassName: StringConstructor;
|
package/dist/pro-table.es.js
CHANGED
|
@@ -29626,6 +29626,7 @@ const GProTable = defineComponent({
|
|
|
29626
29626
|
name: "GProTable",
|
|
29627
29627
|
props: proTableProps,
|
|
29628
29628
|
emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "beforeSearchSubmit", "columnsStateChange", "loadingChange"],
|
|
29629
|
+
inheritAttrs: false,
|
|
29629
29630
|
slots: ["customize", "search", "toolBarBtn", "headerTitle", "titleTip", "optionsExtra"],
|
|
29630
29631
|
setup(props2, {
|
|
29631
29632
|
emit,
|
|
@@ -30008,6 +30009,7 @@ const GProTable = defineComponent({
|
|
|
30008
30009
|
"optionsExtra": getSlotVNode(slots, props2, "optionsExtra"),
|
|
30009
30010
|
"toolBarBtn": toolBarBtn
|
|
30010
30011
|
}, null);
|
|
30012
|
+
const getTableStyle = computed(() => (attrs == null ? void 0 : attrs.style) || {});
|
|
30011
30013
|
return () => {
|
|
30012
30014
|
var _a, _b, _c;
|
|
30013
30015
|
const headerTitleRender = getSlotVNode(slots, props2, "headerTitle");
|
|
@@ -30015,7 +30017,8 @@ const GProTable = defineComponent({
|
|
|
30015
30017
|
const toolBarBtnRender = getSlotVNode(slots, props2, "toolBarBtn");
|
|
30016
30018
|
return createVNode("div", {
|
|
30017
30019
|
"ref": (e) => tableRef.value = e,
|
|
30018
|
-
"class": proTableClassNames.value
|
|
30020
|
+
"class": proTableClassNames.value,
|
|
30021
|
+
"style": getTableStyle.value
|
|
30019
30022
|
}, [createVNode("div", {
|
|
30020
30023
|
"class": "gx-pro-table-content"
|
|
30021
30024
|
}, [(!!formDataRef.value.length || !!((_a = slots.search) == null ? void 0 : _a.call(slots))) && createVNode(ProTableForm, {
|