This commit is contained in:
Fu Diwei 2025-12-11 10:07:55 +08:00 committed by RHQYZ
parent 55829c2f34
commit 83af20bf42
2 changed files with 8 additions and 3 deletions

View File

@ -249,6 +249,9 @@ const BranchBlockNodeConfigExprInputBox = forwardRef<BranchBlockNodeConfigExprIn
};
const handleFormChange = (_: unknown, values: ConditionFormValues) => {
// TODO: 这里直接用参数 `values` 会丢失部分字段,引发 Issue #1096。
// 暂时先用 `getFieldsValue()` 代替,待排查原因,疑似与 antd v6 升级有关。
values = formInst.getFieldsValue();
setValue(formValuesToExpr(values));
};

View File

@ -210,6 +210,11 @@ const InternalNodeMenuButton = ({
return playground.config.readonlyOrDisabled ? null : (
<Dropdown
styles={{
root: {
zIndex: 10 /* 确保要比 Minimap 组件层级要高,防止被遮挡而点击不到 */,
},
}}
arrow={false}
destroyOnHidden
menu={{
@ -243,9 +248,6 @@ const InternalNodeMenuButton = ({
e.domEvent.stopPropagation();
},
}}
overlayStyle={{
zIndex: 10 /* 确保要比 Minimap 组件层级要高,防止被遮挡而点击不到 */,
}}
trigger={["click"]}
>
<Button