react-toolkits 2.14.7 → 2.14.8

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,11 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.14.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 4e10c9d: refactor(QueryList): 为QueryListRef和QueryListProps接口添加泛型默认值
8
+
3
9
  ## 2.14.7
4
10
 
5
11
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -203,12 +203,12 @@ declare enum QueryListAction {
203
203
  Jump = 2,
204
204
  Init = 3
205
205
  }
206
- interface QueryListRef<Item, Values, Data> {
206
+ interface QueryListRef<Item extends AnyObject = AnyObject, Values = AnyObject, Data = any> {
207
207
  data: Data | undefined;
208
208
  dataSource: Item[] | undefined;
209
209
  form: FormInstance<Values>;
210
210
  }
211
- interface QueryListProps<Item, Values, Data> extends Omit<TableProps<Item>, 'pagination' | 'dataSource' | 'loading' | 'footer'>, Pick<FilterFormWrapperProps, 'buttonsAlign' | 'showReset'> {
211
+ interface QueryListProps<Item extends AnyObject = AnyObject, Values = AnyObject, Data = any> extends Omit<TableProps<Item>, 'pagination' | 'dataSource' | 'loading' | 'footer'>, Pick<FilterFormWrapperProps, 'buttonsAlign' | 'showReset'> {
212
212
  url: string;
213
213
  code?: string;
214
214
  form?: FormInstance<Values>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-toolkits",
3
3
  "type": "module",
4
- "version": "2.14.7",
4
+ "version": "2.14.8",
5
5
  "sideEffects": [
6
6
  "*.css"
7
7
  ],