@gx-design-vue/pro-table 0.2.0-beta.66 → 0.2.0-beta.68
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 +23 -6
- package/dist/hooks/useFetchData.d.ts +2 -2
- package/dist/hooks/usePagination.d.ts +2 -2
- package/dist/hooks/useRowSelection.d.ts +1 -0
- package/dist/hooks/useTable.d.ts +5 -2
- package/dist/index.d.ts +1 -1
- package/dist/pro-table.js +1073 -1076
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/props.d.ts +7 -9
- package/dist/types/TableTypings.d.ts +16 -6
- 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"]>;
|
|
@@ -346,9 +350,13 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
346
350
|
type: import("vue").PropType<ProTableProps["showLoading"]>;
|
|
347
351
|
default: boolean;
|
|
348
352
|
};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
353
|
+
tableProps: {
|
|
354
|
+
type: import("vue").PropType<ProTableProps["tableProps"]>;
|
|
355
|
+
default: () => ProTableProps["tableProps"];
|
|
356
|
+
};
|
|
357
|
+
emptyTextProps: {
|
|
358
|
+
type: import("vue").PropType<ProTableProps["emptyTextProps"]>;
|
|
359
|
+
default: () => ProTableProps["emptyTextProps"];
|
|
352
360
|
};
|
|
353
361
|
toolBarBtn: {
|
|
354
362
|
type: import("vue").PropType<ProTableProps["toolBarBtn"]>;
|
|
@@ -729,7 +737,16 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
729
737
|
rowSelection: import("./types/TableTypings").ProTableRowSelection;
|
|
730
738
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
731
739
|
autoScroll: boolean | undefined;
|
|
740
|
+
tableProps: {
|
|
741
|
+
class?: string;
|
|
742
|
+
style?: CSSProperties;
|
|
743
|
+
} | undefined;
|
|
732
744
|
titleTipText: string | undefined;
|
|
745
|
+
emptyTextProps: {
|
|
746
|
+
class?: string;
|
|
747
|
+
style?: CSSProperties;
|
|
748
|
+
extraProps?: Record<string, any>;
|
|
749
|
+
} | undefined;
|
|
733
750
|
columnEmptyText: import("./types/TableTypings").ProFieldEmptyText | undefined;
|
|
734
751
|
showLoading: boolean | undefined;
|
|
735
752
|
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,6 @@ 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
10
|
setPagination: (info: Partial<ProTablePagination>) => void;
|
|
11
11
|
};
|
package/dist/hooks/useTable.d.ts
CHANGED
|
@@ -7,8 +7,11 @@ export declare function useTable<T extends object = Record<string, any>, R exten
|
|
|
7
7
|
request?: RequsetFunction<T, R>;
|
|
8
8
|
}): {
|
|
9
9
|
dataSource: ComputedRef<T[]>;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
rowsSelection: () => {
|
|
11
|
+
keys: (string | number)[];
|
|
12
|
+
items: T[];
|
|
13
|
+
clear: () => void;
|
|
14
|
+
};
|
|
12
15
|
loading: Ref<boolean>;
|
|
13
16
|
requestParams: ComputedRef<RequsetConfig<R>['params']>;
|
|
14
17
|
reload: ProCoreActionType<T, R>['reload'];
|
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';
|