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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lu-lowcode-package-form",
3
- "version": "0.11.94",
3
+ "version": "0.11.95",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -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