@gx-design-vue/pro-table 0.2.0-beta.67 → 0.2.0-beta.69
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 +39 -8
- package/dist/hooks/useFetchData.d.ts +2 -2
- package/dist/hooks/usePagination.d.ts +6 -2
- package/dist/index.d.ts +1 -1
- package/dist/pro-table.js +1034 -1021
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/props.d.ts +7 -9
- package/dist/types/TableTypings.d.ts +13 -5
- package/package.json +2 -2
package/dist/ProTable.d.ts
CHANGED
|
@@ -56,9 +56,13 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
56
56
|
type: import("vue").PropType<ProTableProps["showLoading"]>;
|
|
57
57
|
default: boolean;
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
tableProps: {
|
|
60
|
+
type: import("vue").PropType<ProTableProps["tableProps"]>;
|
|
61
|
+
default: () => ProTableProps["tableProps"];
|
|
62
|
+
};
|
|
63
|
+
emptyTextProps: {
|
|
64
|
+
type: import("vue").PropType<ProTableProps["emptyTextProps"]>;
|
|
65
|
+
default: () => ProTableProps["emptyTextProps"];
|
|
62
66
|
};
|
|
63
67
|
toolBarBtn: {
|
|
64
68
|
type: import("vue").PropType<ProTableProps["toolBarBtn"]>;
|
|
@@ -277,7 +281,14 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
277
281
|
};
|
|
278
282
|
scroll: {
|
|
279
283
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/Table").TableProps["scroll"] & {
|
|
280
|
-
scrollToFirstRowOnChange
|
|
284
|
+
scrollToFirstRowOnChange
|
|
285
|
+
/**
|
|
286
|
+
* @Author gx12358
|
|
287
|
+
* @DateTime 2022/1/21
|
|
288
|
+
* @lastTime 2022/1/21
|
|
289
|
+
* @description Tabel-scroll hooks 方法
|
|
290
|
+
*/
|
|
291
|
+
?: boolean;
|
|
281
292
|
}>;
|
|
282
293
|
default: undefined;
|
|
283
294
|
};
|
|
@@ -346,9 +357,13 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
346
357
|
type: import("vue").PropType<ProTableProps["showLoading"]>;
|
|
347
358
|
default: boolean;
|
|
348
359
|
};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
360
|
+
tableProps: {
|
|
361
|
+
type: import("vue").PropType<ProTableProps["tableProps"]>;
|
|
362
|
+
default: () => ProTableProps["tableProps"];
|
|
363
|
+
};
|
|
364
|
+
emptyTextProps: {
|
|
365
|
+
type: import("vue").PropType<ProTableProps["emptyTextProps"]>;
|
|
366
|
+
default: () => ProTableProps["emptyTextProps"];
|
|
352
367
|
};
|
|
353
368
|
toolBarBtn: {
|
|
354
369
|
type: import("vue").PropType<ProTableProps["toolBarBtn"]>;
|
|
@@ -567,7 +582,14 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
567
582
|
};
|
|
568
583
|
scroll: {
|
|
569
584
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/Table").TableProps["scroll"] & {
|
|
570
|
-
scrollToFirstRowOnChange
|
|
585
|
+
scrollToFirstRowOnChange
|
|
586
|
+
/**
|
|
587
|
+
* @Author gx12358
|
|
588
|
+
* @DateTime 2022/1/21
|
|
589
|
+
* @lastTime 2022/1/21
|
|
590
|
+
* @description Tabel-scroll hooks 方法
|
|
591
|
+
*/
|
|
592
|
+
?: boolean;
|
|
571
593
|
}>;
|
|
572
594
|
default: undefined;
|
|
573
595
|
};
|
|
@@ -729,7 +751,16 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
729
751
|
rowSelection: import("./types/TableTypings").ProTableRowSelection;
|
|
730
752
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
731
753
|
autoScroll: boolean | undefined;
|
|
754
|
+
tableProps: {
|
|
755
|
+
class?: string;
|
|
756
|
+
style?: CSSProperties;
|
|
757
|
+
} | undefined;
|
|
732
758
|
titleTipText: string | undefined;
|
|
759
|
+
emptyTextProps: {
|
|
760
|
+
class?: string;
|
|
761
|
+
style?: CSSProperties;
|
|
762
|
+
extraProps?: Record<string, any>;
|
|
763
|
+
} | undefined;
|
|
733
764
|
columnEmptyText: import("./types/TableTypings").ProFieldEmptyText | undefined;
|
|
734
765
|
showLoading: boolean | undefined;
|
|
735
766
|
showIndex: boolean | undefined;
|
|
@@ -5,7 +5,7 @@ import type { ProTabelFeachParams, ProTablePagination, ProTablePaginationConfig,
|
|
|
5
5
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
6
6
|
interface ActionType {
|
|
7
7
|
loading: ComputedRef<boolean | undefined>;
|
|
8
|
-
|
|
8
|
+
paginationInfo: Ref<ProTablePagination>;
|
|
9
9
|
setPagination: (info: Partial<ProTablePagination>) => void;
|
|
10
10
|
setLoading: (loading: boolean) => void;
|
|
11
11
|
setColumns: (columnList: ProColumnsType) => void;
|
|
@@ -25,7 +25,7 @@ export type ConfigFetchData = {
|
|
|
25
25
|
dataSource: ComputedRef<ProTableProps['dataSource']>;
|
|
26
26
|
};
|
|
27
27
|
export declare function useConfigFetchData(props: ProTableProps): Omit<ConfigFetchData, 'waitRequest'>;
|
|
28
|
-
export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime }: ConfigFetchData, { columns, loading, setLoading, setColumns, removeRowKeys, syncSelectedRows, formParamsRef, setPagination,
|
|
28
|
+
export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime }: ConfigFetchData, { columns, loading, setLoading, setColumns, removeRowKeys, syncSelectedRows, formParamsRef, setPagination, paginationInfo, onBeforeSearchSubmit, hasCustomRender }: ActionType, emit: any): {
|
|
29
29
|
dataSource: ComputedRef<RecordType[]>;
|
|
30
30
|
isTreeDataRef: ComputedRef<boolean>;
|
|
31
31
|
reSetDataList: (list: RecordType[]) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { Slots } from '../types/SlotsTypings';
|
|
3
3
|
import type { ProTablePagination, ProTableProps } from '../types/TableTypings';
|
|
4
4
|
export declare function usePagination({ slots, props, pagination }: {
|
|
@@ -6,6 +6,10 @@ export declare function usePagination({ slots, props, pagination }: {
|
|
|
6
6
|
props: ComputedRef<ProTableProps>;
|
|
7
7
|
pagination: Ref<ProTableProps['pagination']>;
|
|
8
8
|
}): {
|
|
9
|
-
|
|
9
|
+
paginationInfo: Ref<ProTablePagination, ProTablePagination>;
|
|
10
|
+
requestPagination: {
|
|
11
|
+
pageSize: number;
|
|
12
|
+
pageNum: number;
|
|
13
|
+
};
|
|
10
14
|
setPagination: (info: Partial<ProTablePagination>) => void;
|
|
11
15
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTable } from './hooks/useTable';
|
|
2
2
|
export type { BaseTableProps } from './props';
|
|
3
|
-
export type { ProTableProps } from './types/TableTypings';
|
|
3
|
+
export type { ProTableProps, PageState } from './types/TableTypings';
|
|
4
4
|
export type { ProTableBodyCellProps } from './types/SlotsTypings';
|
|
5
5
|
export type { ProColumnType, ProColumnsType, ProSearchMap } from './types/ColumnTypings';
|
|
6
6
|
export { proTableProps } from './props';
|