lu-lowcode-package-form 0.11.37 → 0.11.39

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.37",
3
+ "version": "0.11.39",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -29,10 +29,10 @@ const CodeMachine = ({ value, ...props }) => {
29
29
  }
30
30
 
31
31
  const TextArea = (props) => {
32
-
32
+ let {minRows = 2,maxRows = 10} = props
33
33
  return (
34
34
  <BaseWrapper {...props}>
35
- <OriginalTextArea {...props} />
35
+ <OriginalTextArea {...props} autoSize={{ minRows, maxRows }} />
36
36
  </BaseWrapper>
37
37
  );
38
38
  }
@@ -19,6 +19,10 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
19
19
  }, []);
20
20
  const callbackQueue = useRef([]);
21
21
 
22
+ useEffect(() => {
23
+ console.log("fieldName change props", fieldName)
24
+ }, [fieldName])
25
+
22
26
  useEffect(() => {
23
27
  // console.log("SearchSelect useEffect props", props)
24
28
  if (value) {
@@ -105,7 +109,7 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
105
109
  await debounceFetchOptions(params)
106
110
  }
107
111
 
108
- const debounceFetchOptions = useCallback(debounce((params, ruleParams) => {
112
+ const debounceFetchOptions = debounce((params, ruleParams) => {
109
113
  fetchOptions(params, ruleParams).then(result => {
110
114
  // console.log(`[${props?.label}]debounceFetchOptions result`, result);
111
115
  while (callbackQueue.current.length > 0) {
@@ -115,7 +119,7 @@ const SearchSelect = forwardRef(({ addWrapper = true, form, fieldName, fieldsVal
115
119
  }
116
120
  }
117
121
  });
118
- }, 200), []);
122
+ }, 200)
119
123
 
120
124
  const fetchList = async (params, ruleParams) => {
121
125
  let list = []