react-toolkits 2.22.1 → 2.22.3

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.22.3
4
+
5
+ ### Patch Changes
6
+
7
+ - d6368d3: 优化QueryList组件,改进payload管理逻辑,避免不必要的重渲染和请求,同时更新dataAdapter配置以提升代码可读性和一致性。
8
+
9
+ ## 2.22.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 67ac7f5: 重构QueryList组件及相关页面,更新dataAdapter配置,简化参数处理逻辑,提升代码可读性和一致性。
14
+
3
15
  ## 2.22.1
4
16
 
5
17
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -358,7 +358,7 @@ interface QueryListDataAdapter<Item extends AnyObject = AnyObject> {
358
358
  total?: number;
359
359
  items?: Item[];
360
360
  }
361
- type QueryListDataAdapterConfig<Item extends AnyObject = AnyObject, Values = AnyObject, Data = any> = QueryListDataAdapter<Item> | ((form: FormInstance<Values>, data: Data) => QueryListDataAdapter<Item>);
361
+ type QueryListDataAdapterConfig<Item extends AnyObject = AnyObject, Data = any> = QueryListDataAdapter<Item> | ((data: Data) => QueryListDataAdapter<Item>);
362
362
  interface QueryListProps<Item extends AnyObject = AnyObject, Values = AnyObject, Data = any> extends Omit<TableProps<Item>, 'pagination' | 'dataSource' | 'loading' | 'footer'>, Pick<FilterFormWrapperProps, 'buttonsAlign' | 'showReset'> {
363
363
  identifier?: string;
364
364
  code?: string;
@@ -372,7 +372,7 @@ interface QueryListProps<Item extends AnyObject = AnyObject, Values = AnyObject,
372
372
  renderForm?: (form: FormInstance<Values>) => ReactElement;
373
373
  afterSuccess?: (action: QueryListAction, form: FormInstance<Values>, data?: Data) => void;
374
374
  afterError?: (error: Error, action: QueryListAction, form: FormInstance<Values>) => void;
375
- dataAdapter?: QueryListDataAdapterConfig<Item, Values, Data>;
375
+ dataAdapter?: QueryListDataAdapterConfig<Item, Data>;
376
376
  footer?: (data: Data | undefined) => ReactNode;
377
377
  }
378
378
  declare const QueryList: <Item extends AnyObject = AnyObject, Values extends object | undefined = undefined, Data = any>(props: QueryListProps<Item, Values, Data> & {