@hzab/list-render 1.9.12 → 1.9.13

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,3 +1,7 @@
1
+ # @hzab/list-render@1.9.13
2
+
3
+ fix: 首次自动请求 onSearch 入参添加 queryFormInitialValues
4
+
1
5
  # @hzab/list-render@1.9.12
2
6
 
3
7
  fix: table添加拖拽排序
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/list-render",
3
- "version": "1.9.12",
3
+ "version": "1.9.13",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -24,6 +24,7 @@
24
24
  "@hzab/data-model": "^1.7.4",
25
25
  "@hzab/form-render": "^1.6.12",
26
26
  "@hzab/formily-result-utils": "^1.2.0",
27
+ "@hzab/permissions": "^1.0.0",
27
28
  "@hzab/schema-descriptions": "^1.3.0",
28
29
  "@hzab/webpack-config": "^0.7.2",
29
30
  "@types/react": "^17.0.62",
@@ -31,6 +32,8 @@
31
32
  "antd": "^4.24.12",
32
33
  "axios": "^1.4.0",
33
34
  "eslint": "^8.30.0",
35
+ "mobx": "^6.7.0",
36
+ "mobx-react": "^7.6.0",
34
37
  "less": "^4.1.3",
35
38
  "lodash": "^4.17.21",
36
39
  "react": "^17.0.2",
@@ -21,6 +21,7 @@ export const FormilyField = memo(function (props: formilyFieldPropsT) {
21
21
  const { fields, fieldSchemas } = formilyRef.current || {};
22
22
  const SchemaField = useCallback(
23
23
  createSchemaField({
24
+ // @ts-ignore
24
25
  components: {
25
26
  ...antdComponents,
26
27
  ...customComponents,
@@ -98,7 +98,8 @@ const ListRender = forwardRef(function (props, parentRef) {
98
98
  }
99
99
  model.query.pageNum = 1;
100
100
  }
101
- !props.closeAutoRequest && getList();
101
+ // 首次自动请求,取 筛选表单的默认值 进行请求
102
+ !props.closeAutoRequest && onSearch(queryFormInitialValues);
102
103
  }, []);
103
104
 
104
105
  useEffect(() => {