@gx-design-vue/pro-table 0.2.0-beta.106 → 0.2.0-beta.108

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.
@@ -1,8 +1,8 @@
1
+ import type { RecordType } from '@gx-design-vue/pro-utils';
1
2
  import type { CSSProperties, SlotsType } from 'vue';
2
3
  import type { Key, SpinProps } from './_utils';
3
4
  import type { OptionConfig, ProTableProps, SearchConfig } from './types/TableTypings';
4
- import { type RecordType } from '@gx-design-vue/pro-utils';
5
- import { AntTabelSlotsType, DefaultRender } from './types/SlotsTypings';
5
+ import { AntTableSlotsType, DefaultRender } from './types/SlotsTypings';
6
6
  declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
7
  rowSelection: {
8
8
  type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection>;
@@ -162,12 +162,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
162
162
  default: undefined;
163
163
  };
164
164
  'onUpdate:expandedRowKeys': {
165
- type: import("vue" /**
166
- * @Author gx12358
167
- * @DateTime 2022/1/21
168
- * @lastTime 2022/1/21
169
- * @description Tabel-loading hooks 方法
170
- */).PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
165
+ type: import("vue").PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
171
166
  default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
172
167
  };
173
168
  }>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "submit" | "change" | "requestError" | "reload" | "loadingChange" | "sizeChange" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange")[], "reset" | "submit" | "change" | "requestError" | "reload" | "loadingChange" | "sizeChange" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -329,12 +324,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
329
324
  default: undefined;
330
325
  };
331
326
  'onUpdate:expandedRowKeys': {
332
- type: import("vue" /**
333
- * @Author gx12358
334
- * @DateTime 2022/1/21
335
- * @lastTime 2022/1/21
336
- * @description Tabel-loading hooks 方法
337
- */).PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
327
+ type: import("vue").PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
338
328
  default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
339
329
  };
340
330
  }>> & Readonly<{
@@ -398,7 +388,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
398
388
  options: boolean | OptionConfig | undefined;
399
389
  waitRequest: boolean | undefined;
400
390
  debounceTime: number | undefined;
401
- request: import("./types/TableTypings").RequsetFunction<RecordType, RecordType> | undefined;
391
+ request: import("./types/TableTypings").RequestFunction<RecordType, RecordType> | undefined;
402
392
  params: RecordType | undefined;
403
393
  search: false | SearchConfig | undefined;
404
394
  searchMap: import("./types/ColumnTypings").ProSearchMap<undefined, string>[] | undefined;
@@ -422,5 +412,5 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
422
412
  currentData: any[];
423
413
  dataSource: any[];
424
414
  }): void;
425
- } & AntTabelSlotsType>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
415
+ } & AntTableSlotsType>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
426
416
  export default ProTable;
@@ -1,6 +1,6 @@
1
+ import type { RecordType } from '@gx-design-vue/pro-utils';
1
2
  import type { PropType } from 'vue';
2
3
  import type { ProSearchMap } from '../../types/ColumnTypings';
3
- import { type RecordType } from '@gx-design-vue/pro-utils';
4
4
  declare const ProTableForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  modal: PropType<boolean | undefined>;
6
6
  searchMap: {
@@ -1,8 +1,8 @@
1
+ import type { RecordType } from '@gx-design-vue/pro-utils';
1
2
  import type { ComputedRef, Ref } from 'vue';
2
3
  import type { FilterValue, SorterResult, TableCurrentDataSource } from '../_utils';
3
4
  import type { ProColumnsType } from '../types/ColumnTypings';
4
- import type { ProTabelFeachParams, ProTablePagination, ProTablePaginationConfig, ProTableProps, SearchConfig } from '../types/TableTypings';
5
- import { type RecordType } from '@gx-design-vue/pro-utils';
5
+ import type { ProTableFetchParams, ProTablePagination, ProTablePaginationConfig, ProTableProps, SearchConfig } from '../types/TableTypings';
6
6
  interface ActionType {
7
7
  loading: ComputedRef<boolean | undefined>;
8
8
  search: ComputedRef<SearchConfig | false>;
@@ -38,6 +38,6 @@ export declare function useFetchData({ rowKey, polling, request, postData, dataS
38
38
  type?: "update" | "push" | "delete" | "unshift";
39
39
  }) => void;
40
40
  handleTableChange: (pagination: ProTablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult | SorterResult[], extra?: TableCurrentDataSource) => void;
41
- reload: (info?: ProTabelFeachParams) => Promise<void>;
41
+ reload: (info?: ProTableFetchParams) => Promise<void>;
42
42
  };
43
43
  export {};
@@ -1,5 +1,5 @@
1
+ import type { Ref } from 'vue';
1
2
  import type { SpinProps } from '../_utils';
2
- import { type Ref } from 'vue';
3
3
  export declare function useLoading({ emit, loading: propsLoading }: {
4
4
  loading: Ref<boolean | SpinProps | undefined>;
5
5
  emit: any;
@@ -1,8 +1,8 @@
1
+ import type { RecordType } from '@gx-design-vue/pro-utils';
1
2
  import type { ComputedRef, Ref } from 'vue';
2
3
  import type { BaseTableProps } from '../props';
3
4
  import type { ProColumnsType, ProSearchMap } from '../types/ColumnTypings';
4
- import type { ProCoreActionType, ProCoreFormType, ProTableProps, ProTableRef, ProTableRowSelection, RequsetConfig, RequsetFunction } from '../types/TableTypings';
5
- import { type RecordType } from '@gx-design-vue/pro-utils';
5
+ import type { ProCoreActionType, ProCoreFormType, ProTableProps, ProTableRef, ProTableRowSelection, RequestConfig, RequestFunction } from '../types/TableTypings';
6
6
  export type ProTableState<T extends object = RecordType, R extends object = RecordType> = BaseTableProps & {
7
7
  params: R;
8
8
  columns: ProColumnsType<T, R>;
@@ -18,14 +18,14 @@ export type ProTableState<T extends object = RecordType, R extends object = Reco
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
20
  state?: BaseTableState<T, R>;
21
- request?: RequsetFunction<T, R>;
21
+ request?: RequestFunction<T, R>;
22
22
  }): {
23
23
  loading: Ref<boolean>;
24
24
  dataSource: ComputedRef<T[]>;
25
25
  selectedKeys: ProCoreActionType<T, R>['selectedKeys'];
26
26
  selectedItems: ProCoreActionType<T, R>['selectedItems'];
27
27
  rowsSelection: ProCoreActionType<T, R>['rowsSelection'];
28
- requestParams: ComputedRef<RequsetConfig<R>['params']>;
28
+ requestParams: 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'];
@@ -1,7 +1,7 @@
1
+ import type { Breakpoint } from '@gx-design-vue/pro-utils';
1
2
  import type { ComputedRef, Ref } from 'vue';
2
3
  import type { ProColumnsType } from '../types/ColumnTypings';
3
4
  import type { ProTableProps } from '../types/TableTypings';
4
- import { type Breakpoint } from '@gx-design-vue/pro-utils';
5
5
  interface ConfigScroll {
6
6
  scroll: ComputedRef<ProTableProps['scroll']>;
7
7
  autoScroll: ComputedRef<ProTableProps['autoScroll']>;
package/dist/index.d.ts CHANGED
@@ -6,4 +6,4 @@ export { default as GProTable } from './ProTable';
6
6
  export type { ProColumnsType, ProColumnType, ProSearchMap } from './types/ColumnTypings';
7
7
  export type { CustomRenderResult, ProTableBodyCellProps } from './types/SlotsTypings';
8
8
  export type { PageState, ProTableProps } from './types/TableTypings';
9
- export type { OptionConfig, ProCoreActionType, ProCoreFormType, ProTabelFeachParams, ProTableRef, RequsetFunction, SearchConfig } from './types/TableTypings';
9
+ export type { OptionConfig, ProCoreActionType, ProCoreFormType, ProTableFetchParams, ProTableRef, RequestFunction, SearchConfig } from './types/TableTypings';