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/dist/index.cjs.js +184 -184
- package/dist/index.es.js +13119 -13121
- package/package.json +1 -1
- package/src/components/field/select/search-select.jsx +3 -2
package/package.json
CHANGED
@@ -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
|
-
|
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 => {
|