Skip to content

Commit 9c3da58

Browse files
author
昔梦
committed
fix:ts类型报错1
1 parent 1545d39 commit 9c3da58

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default memo((props: any) => {
180180
})}
181181
onMouseEnter={() => setIsHovered(true)}
182182
onMouseLeave={() => setIsHovered(false)}
183-
style={{ '--nodeBorderColor': nodeBorderColor }}
183+
style={{ '--nodeBorderColor': nodeBorderColor } as React.CSSProperties}
184184
>
185185
{!settingMap?.[type]?.targetHandleHidden && (
186186
<Handle

packages/x-flow/src/components/NodeLogPanel/components/CodePanel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ export default memo((props: any) => {
102102
quickSuggestions: false,
103103
minimap: { enabled: false },
104104
// wordWrap: 'on',
105-
unicodeHighlight: {
106-
ambiguousCharacters: false,
107-
},
105+
// unicodeHighlight: {
106+
// ambiguousCharacters: false,
107+
// },
108108
}}
109109
onMount={handleEditorDidMount}
110110
// loading={''}

packages/x-flow/src/components/NodeLogPanel/components/StatusPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default memo((props: any) => {
7777
'--status-color': statusColor,
7878
'--status-bg-color': bgColor,
7979
'--status-box-shadow': boxShadowColor,
80-
}}
80+
} as React.CSSProperties}
8181
>
8282
<div
8383
className={classNames('log-status-panel-wrap', {

0 commit comments

Comments
 (0)