@gx-design-vue/pro-table 0.0.3 → 0.0.4

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,15 +1,16 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
2
  import type { RecordType } from '../typing';
3
3
  import type { ProTableProps } from '../ProTable';
4
- import type { SearchConfig } from '../types/table';
5
- import type { ProSearchMap } from '../types/column';
4
+ import type { SearchConfig } from '../types/TableTypings';
5
+ import type { ProSearchMap } from '../types/ColumnTypings';
6
+ export declare function handleFormDefaultValue(data: ProSearchMap[]): any;
6
7
  export declare function useTableForm({ search, searchMap, params, columns }: {
7
8
  search: Ref<SearchConfig>;
8
9
  searchMap: Ref<ProSearchMap[]>;
9
10
  params: Ref<ProTableProps['params']>;
10
11
  columns: ComputedRef<ProTableProps['columns']>;
11
12
  }): {
12
- formDataRef: Ref<ProSearchMap<"text", "date">[]>;
13
+ formDataRef: Ref<ProSearchMap<"text">[]>;
13
14
  formParamsRef: RecordType;
14
15
  defaultParamsRef: RecordType;
15
16
  setFormParams: (params: any) => void;
@@ -1,7 +1,7 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
2
  import type { Breakpoint } from '../typing';
3
3
  import type { ProTableProps } from '../ProTable';
4
- import type { ProColumns } from '../types/column';
4
+ import type { ProColumns } from '../types/ColumnTypings';
5
5
  declare type ConfigScroll = {
6
6
  scroll: ComputedRef<ProTableProps['scroll']>;
7
7
  autoScroll: ComputedRef<ProTableProps['autoScroll']>;
package/dist/index.d.ts CHANGED
@@ -7,6 +7,6 @@ import './style.less';
7
7
  export { proTableProps } from './props';
8
8
  export { default } from './ProTable';
9
9
  export type { ProTableProps } from './ProTable';
10
- export type { RequsetFunction, ProCoreActionTypeConfig, ProTabelFeachParams } from './types/table';
11
- export type { ProColumn, ProColumns } from './types/column';
10
+ export type { RequsetFunction, ProTableRef, ProCoreActionType, ProTabelFeachParams, ProCoreFormType } from './types/TableTypings';
11
+ export type { ProColumn, ProColumns, ProSearchMap } from './types/ColumnTypings';
12
12
  export { default as ProTable } from './ProTable';