Commit c88a7696 authored by chenshouchao's avatar chenshouchao

feat: 新增批算子样式优化

parent 48397525
...@@ -152,11 +152,13 @@ const BatchOperatorFlow = (props: IProps) => { ...@@ -152,11 +152,13 @@ const BatchOperatorFlow = (props: IProps) => {
backgroundColor: "rgba(19, 112, 255, 1)", backgroundColor: "rgba(19, 112, 255, 1)",
border: "none", border: "none",
left: 12, left: 12,
top: "-2px",
}, },
outStyle: { outStyle: {
backgroundColor: "rgba(19, 112, 255, 1)", backgroundColor: "rgba(19, 112, 255, 1)",
border: "none", border: "none",
left: 12, left: 12,
bottom: "-2px",
}, },
}, },
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
background-color: #f5f6f7; background-color: #f5f6f7;
border-radius: 2px; border-radius: 2px;
padding: 6px 12px; padding: 6px 12px;
border: 1px solid #f5f6f7;
} }
.flowNode:hover { .flowNode:hover {
...@@ -24,18 +25,18 @@ ...@@ -24,18 +25,18 @@
margin-left: 8px; margin-left: 8px;
} }
.errorDot{ .errorDot {
display: inline-block; display: inline-block;
line-height: 22px; line-height: 22px;
vertical-align: middle; vertical-align: middle;
width: 8px; width: 8px;
height: 8px; height: 8px;
background-color: #FF4E4E; background-color: #ff4e4e;
border-radius: 8px; border-radius: 8px;
margin-left: 8px; margin-left: 8px;
} }
.handleBox::before{ .handleBox::before {
content: ""; content: "";
position: absolute; position: absolute;
left: -4px; left: -4px;
......
...@@ -37,7 +37,6 @@ const FlowNode = (props: any) => { ...@@ -37,7 +37,6 @@ const FlowNode = (props: any) => {
const { data } = props; const { data } = props;
const { const {
dotStatus,
selectedStatus, selectedStatus,
flowNodeStyle = { display: "flex", alignItems: "center" }, // 样式 flowNodeStyle = { display: "flex", alignItems: "center" }, // 样式
inStyle = { background: "#C2C6CC ", left: 12 }, // 样式 inStyle = { background: "#C2C6CC ", left: 12 }, // 样式
...@@ -77,14 +76,6 @@ const FlowNode = (props: any) => { ...@@ -77,14 +76,6 @@ const FlowNode = (props: any) => {
[styles.selectedFlowBox]: selectedStatus, [styles.selectedFlowBox]: selectedStatus,
})} })}
> >
{/* {dotStatus?.isInput ? (
<Handle
className={styles.handleBox}
style={inStyle}
type="target"
position={Position.Top}
/>
) : null} */}
{inParamsArr?.length {inParamsArr?.length
? inParamsArr.map((item: any, index: number) => { ? inParamsArr.map((item: any, index: number) => {
return ( return (
...@@ -121,14 +112,6 @@ const FlowNode = (props: any) => { ...@@ -121,14 +112,6 @@ const FlowNode = (props: any) => {
/> />
)} )}
</div> </div>
{/* {dotStatus?.isOutput ? (
<Handle
className={styles.handleBox}
style={outStyle}
type="source"
position={Position.Bottom}
/>
) : null} */}
{outParamsArr?.length {outParamsArr?.length
? outParamsArr.map((item: any, index: number) => { ? outParamsArr.map((item: any, index: number) => {
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment