@gx-design-vue/pro-table 0.2.0-beta.60 → 0.2.0-beta.62

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.
@@ -3,7 +3,7 @@ import type { BaseTableProps } from '../props';
3
3
  import { ProCoreActionType, ProCoreFormType, ProTableProps, ProTableRef, RequsetConfig, RequsetFunction } from '../types/TableTypings';
4
4
  import type { ProSearchMap } from '../types/ColumnTypings';
5
5
  export declare function useTable<T extends object = Record<string, any>, R extends object = Record<string, any>>(tableRef: Ref<ProTableRef<T> | undefined>, options?: {
6
- defaultValue: Omit<ProTableProps<T, R>, 'request'>;
6
+ defaultValue?: Omit<ProTableProps<T, R>, 'request'>;
7
7
  request?: RequsetFunction<T, R>;
8
8
  }): {
9
9
  dataSource: ComputedRef<T[]>;
@@ -133,7 +133,7 @@ export type ProTableProps<DataRecord extends object = Record<string, any>, Param
133
133
  postData: (data: any[]) => any;
134
134
  pagination: ProTablePagination;
135
135
  search: SearchConfig | boolean;
136
- searchMap: ProSearchMap<undefined, keyof ParamsType>[];
136
+ searchMap: ProSearchMap<undefined, keyof ParamsType | keyof DataRecord>[];
137
137
  onReset: (params?: Partial<ParamsType>) => any;
138
138
  onReload: (params?: Partial<ParamsType>) => any;
139
139
  onSubmit: (params?: Partial<ParamsType>) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-table",
3
- "version": "0.2.0-beta.60",
3
+ "version": "0.2.0-beta.62",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",