Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
c88a7696
Commit
c88a7696
authored
Aug 15, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增批算子样式优化
parent
48397525
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
22 deletions
+7
-22
index.tsx
...ct/components/Flow/components/BatchOperatorFlow/index.tsx
+2
-0
index.module.css
...ject/components/Flow/components/FlowNode/index.module.css
+5
-5
index.tsx
...ews/Project/components/Flow/components/FlowNode/index.tsx
+0
-17
No files found.
src/views/Project/components/Flow/components/BatchOperatorFlow/index.tsx
View file @
c88a7696
...
...
@@ -152,11 +152,13 @@ const BatchOperatorFlow = (props: IProps) => {
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
border
:
"none"
,
left
:
12
,
top
:
"-2px"
,
},
outStyle
:
{
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
border
:
"none"
,
left
:
12
,
bottom
:
"-2px"
,
},
},
...
...
src/views/Project/components/Flow/components/FlowNode/index.module.css
View file @
c88a7696
...
...
@@ -2,6 +2,7 @@
background-color
:
#f5f6f7
;
border-radius
:
2px
;
padding
:
6px
12px
;
border
:
1px
solid
#f5f6f7
;
}
.flowNode
:hover
{
...
...
@@ -24,22 +25,22 @@
margin-left
:
8px
;
}
.errorDot
{
.errorDot
{
display
:
inline-block
;
line-height
:
22px
;
vertical-align
:
middle
;
width
:
8px
;
height
:
8px
;
background-color
:
#
FF4E4E
;
background-color
:
#
ff4e4e
;
border-radius
:
8px
;
margin-left
:
8px
;
}
.handleBox
::before
{
.handleBox
::before
{
content
:
""
;
position
:
absolute
;
left
:
-4px
;
top
:
-4px
;
width
:
14px
;
height
:
14px
;
}
\ No newline at end of file
}
src/views/Project/components/Flow/components/FlowNode/index.tsx
View file @
c88a7696
...
...
@@ -37,7 +37,6 @@ const FlowNode = (props: any) => {
const
{
data
}
=
props
;
const
{
dotStatus
,
selectedStatus
,
flowNodeStyle
=
{
display
:
"flex"
,
alignItems
:
"center"
},
// 样式
inStyle
=
{
background
:
"#C2C6CC "
,
left
:
12
},
// 样式
...
...
@@ -77,14 +76,6 @@ const FlowNode = (props: any) => {
[
styles
.
selectedFlowBox
]:
selectedStatus
,
})
}
>
{
/* {dotStatus?.isInput ? (
<Handle
className={styles.handleBox}
style={inStyle}
type="target"
position={Position.Top}
/>
) : null} */
}
{
inParamsArr
?.
length
?
inParamsArr
.
map
((
item
:
any
,
index
:
number
)
=>
{
return
(
...
...
@@ -121,14 +112,6 @@ const FlowNode = (props: any) => {
/>
)
}
</
div
>
{
/* {dotStatus?.isOutput ? (
<Handle
className={styles.handleBox}
style={outStyle}
type="source"
position={Position.Bottom}
/>
) : null} */
}
{
outParamsArr
?.
length
?
outParamsArr
.
map
((
item
:
any
,
index
:
number
)
=>
{
return
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment