@gx-design-vue/pro-table 0.2.0-beta.31 → 0.2.0-beta.33

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.
@@ -96,8 +96,18 @@ declare const GProTable: import("vue").DefineComponent<{
96
96
  };
97
97
  size: {
98
98
  type: import("vue").PropType<"small" | "middle" | "large" | undefined>;
99
- default: string;
100
- };
99
+ default: string; /**
100
+ * @Author gx12358
101
+ * @DateTime 2022/1/21
102
+ * @lastTime 2022/1/21
103
+ * @description Tabel-scroll hooks 方法
104
+ */
105
+ }; /**
106
+ * @Author gx12358
107
+ * @DateTime 2022/1/21
108
+ * @lastTime 2022/1/21
109
+ * @description Tabel-scroll hooks 方法
110
+ */
101
111
  align: {
102
112
  type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType | undefined>;
103
113
  default: string;
@@ -330,7 +340,12 @@ declare const GProTable: import("vue").DefineComponent<{
330
340
  arrowPointAtCenter: {
331
341
  type: BooleanConstructor;
332
342
  default: any;
333
- };
343
+ }; /**
344
+ * @Author gx12358
345
+ * @DateTime 2021/7/14
346
+ * @lastTime 2021/7/14
347
+ * @description ant-table原始方法
348
+ */
334
349
  autoAdjustOverflow: {
335
350
  type: import("vue").PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
336
351
  default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
@@ -505,8 +520,18 @@ declare const GProTable: import("vue").DefineComponent<{
505
520
  };
506
521
  size: {
507
522
  type: import("vue").PropType<"small" | "middle" | "large" | undefined>;
508
- default: string;
509
- };
523
+ default: string; /**
524
+ * @Author gx12358
525
+ * @DateTime 2022/1/21
526
+ * @lastTime 2022/1/21
527
+ * @description Tabel-scroll hooks 方法
528
+ */
529
+ }; /**
530
+ * @Author gx12358
531
+ * @DateTime 2022/1/21
532
+ * @lastTime 2022/1/21
533
+ * @description Tabel-scroll hooks 方法
534
+ */
510
535
  align: {
511
536
  type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").AlignType | undefined>;
512
537
  default: string;
@@ -739,7 +764,12 @@ declare const GProTable: import("vue").DefineComponent<{
739
764
  arrowPointAtCenter: {
740
765
  type: BooleanConstructor;
741
766
  default: any;
742
- };
767
+ }; /**
768
+ * @Author gx12358
769
+ * @DateTime 2021/7/14
770
+ * @lastTime 2021/7/14
771
+ * @description ant-table原始方法
772
+ */
743
773
  autoAdjustOverflow: {
744
774
  type: import("vue").PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
745
775
  default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
@@ -921,7 +951,12 @@ declare const GProTable: import("vue").DefineComponent<{
921
951
  arrowPointAtCenter: {
922
952
  type: BooleanConstructor;
923
953
  default: any;
924
- };
954
+ }; /**
955
+ * @Author gx12358
956
+ * @DateTime 2021/7/14
957
+ * @lastTime 2021/7/14
958
+ * @description ant-table原始方法
959
+ */
925
960
  autoAdjustOverflow: {
926
961
  type: import("vue").PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
927
962
  default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
@@ -14,6 +14,7 @@ interface ActionType {
14
14
  columns: ComputedRef<ProColumnsType>;
15
15
  formParamsRef: RecordType;
16
16
  onBeforeSearchSubmit: ProTableProps['onBeforeSearchSubmit'];
17
+ hasCustomRender: ComputedRef<boolean>;
17
18
  }
18
19
  export type ConfigFetchData = {
19
20
  polling: ComputedRef<ProTableProps['polling']>;
@@ -24,7 +25,7 @@ export type ConfigFetchData = {
24
25
  dataSource: ComputedRef<ProTableProps['dataSource']>;
25
26
  };
26
27
  export declare function useConfigFetchData(props: ProTableProps): Omit<ConfigFetchData, 'waitRequest'>;
27
- export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime }: ConfigFetchData, { columns, loadingStatus, setLoading, setColumns, removeRowKeys, syncSelectedRows, formParamsRef, setPagination, getPaginationInfo, onBeforeSearchSubmit }: ActionType, emit: any): {
28
+ export declare function useFetchData({ polling, request, postData, dataSource, waitRequest, debounceTime }: ConfigFetchData, { columns, loadingStatus, setLoading, setColumns, removeRowKeys, syncSelectedRows, formParamsRef, setPagination, getPaginationInfo, onBeforeSearchSubmit, hasCustomRender }: ActionType, emit: any): {
28
29
  getDataSourceRef: ComputedRef<RecordType[]>;
29
30
  isTreeDataRef: ComputedRef<boolean>;
30
31
  reSetDataList: (list: RecordType[]) => void;
@@ -1,12 +1,13 @@
1
1
  import type { Ref, ComputedRef } from 'vue';
2
2
  import type { ProCoreActionType, ProCoreFormType, ProTableRef } from '../types/TableTypings';
3
3
  export declare function useTable(tableRef: Ref<ProTableRef>): {
4
- loading: ComputedRef<boolean>;
4
+ loading: ComputedRef<boolean | undefined>;
5
5
  params: ComputedRef<Record<string, any>>;
6
6
  reload: ProCoreActionType['reload'];
7
7
  mutate: ProCoreActionType['reSetDataList'];
8
- setPage: ProCoreActionType['changePageInfo'];
8
+ setPageAndReload: ProCoreActionType['setPageAndReload'];
9
9
  changeDataValue: ProCoreActionType['changeDataValue'];
10
+ setPagination: ProCoreActionType['setPagination'];
10
11
  changeLoading: ProCoreActionType['loadingOperation'];
11
12
  actionRef: ComputedRef<ProCoreActionType>;
12
13
  formRef: ComputedRef<ProCoreFormType>;
@@ -1,13 +1,14 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
2
  import type { RecordType } from '@gx-design-vue/pro-utils';
3
- import type { ProTableProps } from '../types/TableTypings';
3
+ import type { ProTablePagination, ProTableProps } from '../types/TableTypings';
4
4
  import type { ProSearchMap } from '../types/ColumnTypings';
5
5
  export declare function handleFormDefaultValue(data: ProSearchMap[]): any;
6
- export declare function useTableForm({ search, searchMap, params, columns }: {
6
+ export declare function useTableForm({ search, searchMap, params, columns, setPagination }: {
7
7
  search: Ref<ProTableProps['search']>;
8
8
  searchMap: Ref<ProTableProps['searchMap']>;
9
9
  params: Ref<ProTableProps['params']>;
10
10
  columns: ComputedRef<ProTableProps['columns']>;
11
+ setPagination: (info: Partial<ProTablePagination>) => void;
11
12
  }): {
12
13
  formDataRef: Ref<ProSearchMap<"text">[]>;
13
14
  formParamsRef: RecordType;