Skip to content

Commit

Permalink
fix:只读模式禁用弹窗标题
Browse files Browse the repository at this point in the history
  • Loading branch information
昔梦 committed Jan 8, 2025
1 parent 570b294 commit 57c834d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/x-flow/src/components/PanelContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
/>
)}
</span>
{isDisabled ? (
{isDisabled || readOnly ? (
<span style={{ marginLeft: '11px' }}>{titleVal}</span>
) : (
<Input
Expand Down Expand Up @@ -167,7 +167,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
</div>
{!hideDesc && (
<div className="desc-box">
{isDisabled ? (
{isDisabled ? (
description
) : (
<Input.TextArea
Expand All @@ -178,7 +178,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
setDescVal(e.target.value);
handleNodeValueChange({ desc: e.target.value });
}}
disabled={readOnly}
disabled={readOnly}
/>
)}
</div>
Expand Down

0 comments on commit 57c834d

Please sign in to comment.