lu-lowcode-package-form 0.11.45 → 0.11.46

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": "lu-lowcode-package-form",
3
- "version": "0.11.45",
3
+ "version": "0.11.46",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -186,7 +186,8 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
186
186
  }
187
187
  if (nOptions.length > 0 && !isEqual(nOptions, list)) {
188
188
  console.log(`[${props?.label}]handleOptions onChange(undefined)`)
189
- typeof onChange === 'function' && onChange(undefined)
189
+ // 忘记这行有啥用了,但他会造成debounceFetchOptions之后下拉框置空,暂时弃用
190
+ // typeof onChange === 'function' && onChange(undefined)
190
191
  }
191
192
  }
192
193
  return list
@@ -232,7 +233,7 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
232
233
 
233
234
  try {
234
235
  const nextPageParams = { ...requestParams, page: currentPageRef.current + 1, pageSize: currentPageSize };
235
- let newOptions = await fetchList(nextPageParams, null);
236
+ let newOptions = await fetchList(nextPageParams, null, fieldName);
236
237
  newOptions = await handleOptions(newOptions);
237
238
  if (Array.isArray(newOptions) && newOptions.length > 0) {
238
239
  setNOptions(prevOptions => {