lu-lowcode-package-form 0.11.94 → 0.11.95
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 +255 -255
- package/dist/index.es.js +19189 -19181
- package/package.json +1 -1
- package/src/components/field/select/search-select.jsx +8 -2
package/package.json
CHANGED
@@ -20,6 +20,12 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
|
|
20
20
|
const callbackQueue = useRef([]);
|
21
21
|
const debounceFetchOptionsRef = useRef(null);
|
22
22
|
|
23
|
+
const getOptions = () => {
|
24
|
+
return nOptions
|
25
|
+
}
|
26
|
+
const setOptions = (options) => {
|
27
|
+
setNOptions(options)
|
28
|
+
}
|
23
29
|
|
24
30
|
useEffect(() => {
|
25
31
|
// console.log("SearchSelect useEffect props", props)
|
@@ -264,7 +270,7 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
|
|
264
270
|
|
265
271
|
</OriginalSelect>
|
266
272
|
{!props?.disabled && rightIcon}
|
267
|
-
{!props?.disabled && typeof rightIconRender === 'function' && rightIconRender({ value, onChange, form, fieldName, recordFieldsChange, getAllWithIds, removeLastFieldsValues })}
|
273
|
+
{!props?.disabled && typeof rightIconRender === 'function' && rightIconRender({ value, onChange, form, fieldName, recordFieldsChange, getAllWithIds, removeLastFieldsValues,getOptions,setOptions })}
|
268
274
|
</BaseWrapper>
|
269
275
|
) : (<>
|
270
276
|
<OriginalSelect
|
@@ -283,7 +289,7 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
|
|
283
289
|
|
284
290
|
</OriginalSelect>
|
285
291
|
{!props?.disabled && rightIcon}
|
286
|
-
{!props?.disabled && typeof rightIconRender === 'function' && rightIconRender({ value, onChange, form, fieldName, recordFieldsChange, getAllWithIds, removeLastFieldsValues })}
|
292
|
+
{!props?.disabled && typeof rightIconRender === 'function' && rightIconRender({ value, onChange, form, fieldName, recordFieldsChange, getAllWithIds, removeLastFieldsValues,getOptions,setOptions })}
|
287
293
|
</>
|
288
294
|
)
|
289
295
|
|