@gx-design-vue/pro-table 0.2.0-beta.7 → 0.2.0-beta.9
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 +29 -19
- package/dist/_utils/ant-design-vue/index.d.ts +1 -0
- package/dist/_utils/ant-design-vue/spin/typings.d.ts +1 -0
- package/dist/_utils/index.d.ts +0 -1
- package/dist/hooks/useFetchData.d.ts +3 -3
- package/dist/hooks/useLoading.d.ts +2 -10
- package/dist/pro-table.mjs +12115 -9765
- package/dist/pro-table.umd.js +96 -60
- package/dist/props.d.ts +1 -1
- package/package.json +2 -1
- package/dist/_utils/typings.d.ts +0 -9
package/dist/ProTable.d.ts
CHANGED
|
@@ -79,12 +79,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
79
79
|
default: () => undefined;
|
|
80
80
|
};
|
|
81
81
|
settingExtra: {
|
|
82
|
-
type: import("vue").PropType<SettingExtraRender>;
|
|
83
|
-
* @Author gx12358
|
|
84
|
-
* @DateTime 2022/1/21
|
|
85
|
-
* @lastTime 2022/1/21
|
|
86
|
-
* @description Tabel-size hooks 方法
|
|
87
|
-
*/
|
|
82
|
+
type: import("vue").PropType<SettingExtraRender>;
|
|
88
83
|
default: () => undefined;
|
|
89
84
|
};
|
|
90
85
|
showIndex: {
|
|
@@ -96,7 +91,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
96
91
|
default: () => undefined;
|
|
97
92
|
};
|
|
98
93
|
size: {
|
|
99
|
-
type: import("vue").PropType<"small" | "
|
|
94
|
+
type: import("vue").PropType<"small" | "middle" | "large" | undefined>;
|
|
100
95
|
default: string;
|
|
101
96
|
};
|
|
102
97
|
align: {
|
|
@@ -211,7 +206,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
211
206
|
defaultExpandAllRows: {
|
|
212
207
|
type: BooleanConstructor;
|
|
213
208
|
default: boolean;
|
|
214
|
-
};
|
|
209
|
+
}; /**
|
|
210
|
+
* @Author gx12358
|
|
211
|
+
* @DateTime 2022/1/21
|
|
212
|
+
* @lastTime 2022/1/21
|
|
213
|
+
* @description Tabel-settingColums hooks 方法
|
|
214
|
+
*/
|
|
215
215
|
indentSize: NumberConstructor;
|
|
216
216
|
expandIconColumnIndex: NumberConstructor;
|
|
217
217
|
showExpandColumn: {
|
|
@@ -220,7 +220,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
220
220
|
};
|
|
221
221
|
expandedRowClassName: {
|
|
222
222
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
|
|
223
|
-
default: import("ant-design-vue/es/vc-table/interface").RowClassName<any>;
|
|
223
|
+
default: import("ant-design-vue/es/vc-table/interface").RowClassName<any>; /**
|
|
224
|
+
* @Author gx12358
|
|
225
|
+
* @DateTime 2022/1/21
|
|
226
|
+
* @lastTime 2022/1/21
|
|
227
|
+
* @description Tabel-Form(搜索) hooks 方法
|
|
228
|
+
*/
|
|
224
229
|
};
|
|
225
230
|
childrenColumnName: {
|
|
226
231
|
type: import("vue").PropType<string>;
|
|
@@ -490,12 +495,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
490
495
|
default: () => undefined;
|
|
491
496
|
};
|
|
492
497
|
settingExtra: {
|
|
493
|
-
type: import("vue").PropType<SettingExtraRender>;
|
|
494
|
-
* @Author gx12358
|
|
495
|
-
* @DateTime 2022/1/21
|
|
496
|
-
* @lastTime 2022/1/21
|
|
497
|
-
* @description Tabel-size hooks 方法
|
|
498
|
-
*/
|
|
498
|
+
type: import("vue").PropType<SettingExtraRender>;
|
|
499
499
|
default: () => undefined;
|
|
500
500
|
};
|
|
501
501
|
showIndex: {
|
|
@@ -507,7 +507,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
507
507
|
default: () => undefined;
|
|
508
508
|
};
|
|
509
509
|
size: {
|
|
510
|
-
type: import("vue").PropType<"small" | "
|
|
510
|
+
type: import("vue").PropType<"small" | "middle" | "large" | undefined>;
|
|
511
511
|
default: string;
|
|
512
512
|
};
|
|
513
513
|
align: {
|
|
@@ -622,7 +622,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
622
622
|
defaultExpandAllRows: {
|
|
623
623
|
type: BooleanConstructor;
|
|
624
624
|
default: boolean;
|
|
625
|
-
};
|
|
625
|
+
}; /**
|
|
626
|
+
* @Author gx12358
|
|
627
|
+
* @DateTime 2022/1/21
|
|
628
|
+
* @lastTime 2022/1/21
|
|
629
|
+
* @description Tabel-settingColums hooks 方法
|
|
630
|
+
*/
|
|
626
631
|
indentSize: NumberConstructor;
|
|
627
632
|
expandIconColumnIndex: NumberConstructor;
|
|
628
633
|
showExpandColumn: {
|
|
@@ -631,7 +636,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
631
636
|
};
|
|
632
637
|
expandedRowClassName: {
|
|
633
638
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").RowClassName<any>>;
|
|
634
|
-
default: import("ant-design-vue/es/vc-table/interface").RowClassName<any>;
|
|
639
|
+
default: import("ant-design-vue/es/vc-table/interface").RowClassName<any>; /**
|
|
640
|
+
* @Author gx12358
|
|
641
|
+
* @DateTime 2022/1/21
|
|
642
|
+
* @lastTime 2022/1/21
|
|
643
|
+
* @description Tabel-Form(搜索) hooks 方法
|
|
644
|
+
*/
|
|
635
645
|
};
|
|
636
646
|
childrenColumnName: {
|
|
637
647
|
type: import("vue").PropType<string>;
|
|
@@ -885,7 +895,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
885
895
|
delay: NumberConstructor;
|
|
886
896
|
indicator: import("vue-types").VueTypeValidableDef<any>;
|
|
887
897
|
}>>;
|
|
888
|
-
size: "small" | "
|
|
898
|
+
size: "small" | "middle" | "large" | undefined;
|
|
889
899
|
bordered: boolean | undefined;
|
|
890
900
|
locale: import("ant-design-vue/es/table/interface").TableLocale;
|
|
891
901
|
onChange: (pagination: import("ant-design-vue").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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SpinProps } from 'ant-design-vue';
|
package/dist/_utils/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TableSorter } from '../_utils';
|
|
3
3
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
4
4
|
import type { ProTableProps, ProTablePagination, ProTabelFeachParams, ProTablePaginationConfig } from '../types/TableTypings';
|
|
5
5
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
6
6
|
interface ActionType {
|
|
7
|
-
getLoading: ComputedRef<boolean |
|
|
7
|
+
getLoading: ComputedRef<boolean | undefined>;
|
|
8
8
|
getPaginationInfo: ComputedRef<ProTablePagination>;
|
|
9
9
|
setPagination: (info: Partial<ProTablePagination>) => void;
|
|
10
|
-
setLoading: (loading: boolean
|
|
10
|
+
setLoading: (loading: boolean) => void;
|
|
11
11
|
setColumns: (columnList: ProColumnsType) => void;
|
|
12
12
|
removeRowKeys: (keyList: (string | number)[]) => void;
|
|
13
13
|
syncSelectedRows: (dataList: any[]) => void;
|
|
@@ -4,14 +4,6 @@ export declare function useLoading({ emit, loading }: {
|
|
|
4
4
|
loading: Ref<boolean | SpinProps | undefined>;
|
|
5
5
|
emit: any;
|
|
6
6
|
}): {
|
|
7
|
-
getLoading: import("vue").ComputedRef<boolean
|
|
8
|
-
|
|
9
|
-
spinning?: boolean | undefined;
|
|
10
|
-
size?: "small" | "default" | "large" | undefined;
|
|
11
|
-
wrapperClassName?: string | undefined;
|
|
12
|
-
tip?: string | undefined;
|
|
13
|
-
delay?: number | undefined;
|
|
14
|
-
indicator?: any;
|
|
15
|
-
}>;
|
|
16
|
-
setLoading: (loading: boolean | SpinProps) => void;
|
|
7
|
+
getLoading: import("vue").ComputedRef<boolean>;
|
|
8
|
+
setLoading: (loading: boolean) => void;
|
|
17
9
|
};
|