Skip to content

Commit 57c834d

Browse files
author
昔梦
committed
fix:只读模式禁用弹窗标题
1 parent 570b294 commit 57c834d

File tree

1 file changed

+3
-3
lines changed
  • packages/x-flow/src/components/PanelContainer

1 file changed

+3
-3
lines changed

packages/x-flow/src/components/PanelContainer/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
135135
/>
136136
)}
137137
</span>
138-
{isDisabled ? (
138+
{isDisabled || readOnly ? (
139139
<span style={{ marginLeft: '11px' }}>{titleVal}</span>
140140
) : (
141141
<Input
@@ -167,7 +167,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
167167
</div>
168168
{!hideDesc && (
169169
<div className="desc-box">
170-
{isDisabled ? (
170+
{isDisabled ? (
171171
description
172172
) : (
173173
<Input.TextArea
@@ -178,7 +178,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
178178
setDescVal(e.target.value);
179179
handleNodeValueChange({ desc: e.target.value });
180180
}}
181-
disabled={readOnly}
181+
disabled={readOnly}
182182
/>
183183
)}
184184
</div>

0 commit comments

Comments
 (0)