lu-lowcode-package-form 0.11.66 → 0.11.68
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 +186 -186
- package/dist/index.es.js +13343 -13341
- package/package.json +1 -1
- package/src/App.jsx +18 -1
- package/src/components/field/table/drag-head.jsx +1 -1
- package/src/components/field/table/index.jsx +0 -1
- package/src/components/form-container/index.jsx +7 -2
package/package.json
CHANGED
package/src/App.jsx
CHANGED
@@ -990,7 +990,24 @@ function App() {
|
|
990
990
|
|
991
991
|
</Field.Table>
|
992
992
|
</Layout.FormRow>
|
993
|
-
|
993
|
+
<Field.Input label="测试计算汇总" __id="huizong1"
|
994
|
+
withIds={["table_fill.fill_tcinput3"]}
|
995
|
+
withFill={{
|
996
|
+
"value": [
|
997
|
+
{
|
998
|
+
"insert": {
|
999
|
+
"span": true
|
1000
|
+
},
|
1001
|
+
"attributes": {
|
1002
|
+
"id": "table_fill.fill_tcinput3",
|
1003
|
+
"color": "blue",
|
1004
|
+
"tagKey": "fieldsValue",
|
1005
|
+
"content": "当前表单.测试被填充计算"
|
1006
|
+
}
|
1007
|
+
},
|
1008
|
+
]
|
1009
|
+
}}
|
1010
|
+
/>
|
994
1011
|
</FormContainerWrapper>
|
995
1012
|
<div className="fgroup">11111
|
996
1013
|
<div className="fbg-red-500 group-hover:fbg-blue-500">
|
@@ -100,7 +100,7 @@ const DragHead = ({ childrenDesc, initialWidth, changeWidth, showAction, showLab
|
|
100
100
|
{childrenDesc.map((child, childIndex) => {
|
101
101
|
const width = getColumnWidth(childIndex)
|
102
102
|
|
103
|
-
return (
|
103
|
+
return child.hidden ? null : (
|
104
104
|
<Resizable
|
105
105
|
key={childIndex}
|
106
106
|
width={width}
|
@@ -92,7 +92,6 @@ const Table = ({ children, onTableAddRow, disabled, readonly, onTableRemoveRow,
|
|
92
92
|
const hidden = (child?.props?.calcHidden || !getDependencyMapShow(child?.props?.componentId || child?.props?.__id)) && mode != "desgin";
|
93
93
|
return {id:child.props.componentId || child.props.__id,label:child.props.label, hidden }
|
94
94
|
})
|
95
|
-
childrenDesc = childrenDesc.filter(item=>!item.hidden)
|
96
95
|
console.log("Emit Table childrenDesc", childrenDesc)
|
97
96
|
eventEmitter.emit("tableChildrenDesc", childrenDesc)
|
98
97
|
setChildrenDesc(childrenDesc)
|
@@ -246,7 +246,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
246
246
|
console.log("设计模式下不进行字段级联计算")
|
247
247
|
return false
|
248
248
|
}
|
249
|
-
|
249
|
+
console.log("handleFieldsWith identifier", identifier)
|
250
250
|
let needRefresh = false;
|
251
251
|
let parentIdentifier = [];
|
252
252
|
if (Array.isArray(identifier)) {
|
@@ -718,6 +718,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
718
718
|
const delay = lockStatus.current === 1 ? 500 : 100;
|
719
719
|
|
720
720
|
timeoutRef.current = setTimeout(async () => {
|
721
|
+
console.log("debounceHandleFieldsChange starting")
|
721
722
|
// 开始新的更新周期
|
722
723
|
dependencyGraphRef.current.startNewCycle();
|
723
724
|
|
@@ -732,6 +733,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
732
733
|
for (let key in changedFieldsState.current) {
|
733
734
|
let field = changedFieldsState.current[key];
|
734
735
|
if (!isEqual(field.value || "", getLastFieldValue(field.name) || "")) {
|
736
|
+
console.log("debounceHandleFieldsChange lockStatus_", lockStatus_)
|
735
737
|
if (lockStatus_ != 1) {
|
736
738
|
// 获取字段标识符(字符串形式)
|
737
739
|
const fieldId = Array.isArray(field.name)
|
@@ -739,7 +741,10 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
739
741
|
: field.name;
|
740
742
|
|
741
743
|
// 跳过已处理的字段
|
742
|
-
if (processedFields.has(fieldId))
|
744
|
+
if (processedFields.has(fieldId)){
|
745
|
+
console.log("跳过已处理的字段 processedFields", fieldId)
|
746
|
+
continue;
|
747
|
+
}
|
743
748
|
processedFields.add(fieldId);
|
744
749
|
|
745
750
|
// 处理字段依赖关系,传递字段ID和依赖图谱
|