lu-lowcode-package-form 0.10.85 → 0.10.87

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.10.85",
3
+ "version": "0.10.87",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
package/src/App.jsx CHANGED
@@ -206,7 +206,7 @@ function App() {
206
206
 
207
207
  <Field.Input label="测试 withVisible" __id="withVisible"
208
208
  isRequired={true}
209
- withIds={["routeType"]}
209
+ withIds={["fill_datasource1"]}
210
210
  withVisible={{
211
211
  "value": [
212
212
  {
@@ -214,7 +214,7 @@ function App() {
214
214
  "span": true
215
215
  },
216
216
  "attributes": {
217
- "id": "routeType",
217
+ "id": "fill_datasource1",
218
218
  "color": "blue",
219
219
  "tagKey": "fieldsValue",
220
220
  "content": "当前表单.开关"
@@ -189,13 +189,12 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
189
189
  needRefresh = needRefresh || needRefresh_
190
190
  }
191
191
 
192
- if (child.component.props.withVisible)
193
- {
192
+ if (child.component.props.withVisible) {
194
193
  let needRefresh_ = handleFieldsVisible(fieldValues, child, parentIdentifier, dependent?.componentName)
195
194
  needRefresh = needRefresh || needRefresh_
196
195
  }
197
-
198
-
196
+
197
+
199
198
  if (!init && child.component.props.withFill)
200
199
  handleFieldsWithFill(fieldValues, child, parentIdentifier, dependent?.componentName)
201
200
 
@@ -449,6 +448,8 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
449
448
  for (let index = 0; index < table_values.length; index++) {
450
449
  await handleFieldsWithFill(fieldValues, child, [childIdentifier[0], index], componentName)
451
450
  }
451
+
452
+
452
453
  return
453
454
 
454
455
  }
@@ -556,7 +557,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
556
557
  const delay = lockStatus.current === 1 ? 500 : 100;
557
558
 
558
559
  timeoutRef.current = setTimeout(() => {
559
-
560
+
560
561
  const fieldValues = form.getFieldsValue();
561
562
  const lockStatus_ = lockStatus.current;
562
563
  lockStatus.current = 0