@gx-design-vue/pro-table 0.2.0-beta.109 → 0.2.0-beta.110
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 +1 -2
- package/dist/hooks/useTable.d.ts +4 -4
- package/dist/pro-table.js +873 -855
- package/dist/pro-table.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ProTable.d.ts
CHANGED
|
@@ -165,7 +165,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
165
165
|
type: import("vue").PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
166
166
|
default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
167
167
|
};
|
|
168
|
-
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "submit" | "change" | "requestError" | "reload" | "loadingChange" | "sizeChange" | "expandedRowsChange" | "expand" | "
|
|
168
|
+
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "submit" | "change" | "requestError" | "reload" | "loadingChange" | "sizeChange" | "expandedRowsChange" | "expand" | "columnsStateChange")[], "reset" | "submit" | "change" | "requestError" | "reload" | "loadingChange" | "sizeChange" | "expandedRowsChange" | "expand" | "columnsStateChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
169
169
|
rowSelection: {
|
|
170
170
|
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection>;
|
|
171
171
|
default: undefined;
|
|
@@ -337,7 +337,6 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
337
337
|
onSizeChange?: ((...args: any[]) => any) | undefined;
|
|
338
338
|
onLoadingChange?: ((...args: any[]) => any) | undefined;
|
|
339
339
|
onRequestError?: ((...args: any[]) => any) | undefined;
|
|
340
|
-
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
341
340
|
onColumnsStateChange?: ((...args: any[]) => any) | undefined;
|
|
342
341
|
}>, {
|
|
343
342
|
columns: import("./types/ColumnTypings").ProColumnsType<RecordType, RecordType> | undefined;
|
package/dist/hooks/useTable.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ComputedRef, Ref } from 'vue';
|
|
1
|
+
import type { ComputedRef, MaybeRef, Ref } from 'vue';
|
|
3
2
|
import type { BaseTableProps } from '../props';
|
|
4
3
|
import type { ProColumnsType, ProSearchMap } from '../types/ColumnTypings';
|
|
5
4
|
import type { ProCoreActionType, ProCoreFormType, ProTableProps, ProTableRef, ProTableRowSelection, RequestConfig, RequestFunction } from '../types/TableTypings';
|
|
5
|
+
import { RecordType } from '@gx-design-vue/pro-utils';
|
|
6
6
|
export type ProTableState<T extends object = RecordType, R extends object = RecordType> = BaseTableProps & {
|
|
7
7
|
params: R;
|
|
8
8
|
columns: ProColumnsType<T, R>;
|
|
@@ -17,7 +17,7 @@ export type ProTableState<T extends object = RecordType, R extends object = Reco
|
|
|
17
17
|
};
|
|
18
18
|
export type BaseTableState<T extends object = RecordType, R extends object = RecordType> = Omit<ProTableProps<T, R>, 'request'>;
|
|
19
19
|
export declare function useTable<T extends object = RecordType, R extends object = RecordType>(tableRef: Ref<ProTableRef<T> | undefined>, options?: {
|
|
20
|
-
state?: BaseTableState<T, R
|
|
20
|
+
state?: MaybeRef<BaseTableState<T, R>>;
|
|
21
21
|
request?: RequestFunction<T, R>;
|
|
22
22
|
}): {
|
|
23
23
|
loading: Ref<boolean>;
|
|
@@ -25,7 +25,7 @@ export declare function useTable<T extends object = RecordType, R extends object
|
|
|
25
25
|
selectedKeys: ProCoreActionType<T, R>['selectedKeys'];
|
|
26
26
|
selectedItems: ProCoreActionType<T, R>['selectedItems'];
|
|
27
27
|
rowsSelection: ProCoreActionType<T, R>['rowsSelection'];
|
|
28
|
-
|
|
28
|
+
requestSearch: ComputedRef<RequestConfig<R>['params']>;
|
|
29
29
|
reload: ProCoreActionType<T, R>['reload'];
|
|
30
30
|
mutate: ProCoreActionType<T, R>['reSetDataList'];
|
|
31
31
|
setPageAndReload: ProCoreActionType<T, R>['setPageAndReload'];
|