@hzab/list-render 1.10.12-beta4 → 1.10.12-beta5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/list-render",
3
- "version": "1.10.12-beta4",
3
+ "version": "1.10.12-beta5",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -121,11 +121,10 @@ const ListRender = forwardRef(function (props, parentRef) {
121
121
 
122
122
  // 延迟获取表单实例
123
123
  Promise.resolve().then(() => {
124
- if (queryRef.current && queryRef.current?.formRef?.current?.formRender) {
124
+ if (queryRef.current && queryRef.current?.formRef?.current?.formRender && appendUrlQuery) {
125
125
  const extractValues = extractSplitDateRanges(filters, schema, getUrlQuery);
126
126
  queryRef.current.formRef.current.formRender?.setValues(extractValues);
127
-
128
- formQueryRef.current = _.cloneDeep(getUrlQuery);
127
+ formQueryRef.current = _.cloneDeep(queryRef.current.formRef.current.formRender?.values);
129
128
  }
130
129
  !props.closeAutoRequest && getList({});
131
130
  });