@gx-design-vue/pro-table 0.2.0-beta.30 → 0.2.0-beta.32

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.
@@ -8,6 +8,9 @@ declare const GProTable: import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection<any>>;
9
9
  default: undefined;
10
10
  };
11
+ loadingStatus: {
12
+ type: import("vue").PropType<any>;
13
+ };
11
14
  columns: {
12
15
  type: import("vue").PropType<ProColumnsType<import("./typing").DefaultRecordType> | undefined>;
13
16
  default: never[];
@@ -414,6 +417,9 @@ declare const GProTable: import("vue").DefineComponent<{
414
417
  type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection<any>>;
415
418
  default: undefined;
416
419
  };
420
+ loadingStatus: {
421
+ type: import("vue").PropType<any>;
422
+ };
417
423
  columns: {
418
424
  type: import("vue").PropType<ProColumnsType<import("./typing").DefaultRecordType> | undefined>;
419
425
  default: never[];
@@ -4,7 +4,7 @@ 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 | undefined>;
7
+ loadingStatus: ComputedRef<boolean | undefined>;
8
8
  getPaginationInfo: ComputedRef<ProTablePagination>;
9
9
  setPagination: (info: Partial<ProTablePagination>) => void;
10
10
  setLoading: (loading: boolean) => void;
@@ -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, getLoading, 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,9 +1,9 @@
1
- import type { Ref } from 'vue';
1
+ import { type Ref } from 'vue';
2
2
  import type { SpinProps } from '../_utils';
3
3
  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>;
7
+ loadingStatus: import("vue").ComputedRef<boolean>;
8
8
  setLoading: (loading: boolean) => void;
9
9
  };
@@ -1,11 +1,12 @@
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
5
  params: ComputedRef<Record<string, any>>;
5
- loading: ComputedRef<ProCoreActionType['getLoadingStatus']>;
6
6
  reload: ProCoreActionType['reload'];
7
7
  mutate: ProCoreActionType['reSetDataList'];
8
8
  setPage: ProCoreActionType['changePageInfo'];
9
+ changeDataValue: ProCoreActionType['changeDataValue'];
9
10
  changeLoading: ProCoreActionType['loadingOperation'];
10
11
  actionRef: ComputedRef<ProCoreActionType>;
11
12
  formRef: ComputedRef<ProCoreFormType>;