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
1d6dd4f4
Commit
1d6dd4f4
authored
Aug 22, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 标题横向
parent
2b9278cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
14 deletions
+20
-14
index.module.css
...ect/components/Flow/components/BatchNode/index.module.css
+6
-2
index.tsx
...ws/Project/components/Flow/components/BatchNode/index.tsx
+6
-5
index.tsx
...ct/components/Flow/components/BatchOperatorFlow/index.tsx
+2
-2
index.tsx
src/views/Project/components/Flow/index.tsx
+6
-5
No files found.
src/views/Project/components/Flow/components/BatchNode/index.module.css
View file @
1d6dd4f4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
/* padding: 12px 20px; */
/* padding: 12px 20px; */
border
:
1px
solid
#e6e8eb
;
border
:
1px
solid
#e6e8eb
;
border-left
:
4px
solid
#e6e8eb
;
border-left
:
4px
solid
#e6e8eb
;
display
:
flex
;
/* display: flex; */
align-items
:
center
;
align-items
:
center
;
}
}
...
@@ -37,7 +37,11 @@
...
@@ -37,7 +37,11 @@
}
}
.batchRotate
{
.batchRotate
{
transform
:
translateX
(
-50%
)
rotate
(
-90deg
);
margin-bottom
:
20px
;
line-height
:
22px
;
font-size
:
14px
;
/* text-align: center; */
/* transform: translateX(-50%) rotate(-90deg); */
}
}
.handleBox
::before
{
.handleBox
::before
{
...
...
src/views/Project/components/Flow/components/BatchNode/index.tsx
View file @
1d6dd4f4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-07-12 11:20:29
* @Date: 2022-07-12 11:20:29
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-08-
09 11:24:38
* @LastEditTime: 2022-08-
22 11:45:44
* @FilePath: /bkunyun/src/views/Project/components/Flow/components/BatchNode.tsx
* @FilePath: /bkunyun/src/views/Project/components/Flow/components/BatchNode.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -68,11 +68,12 @@ const BatchNode = (props: IBatchNode) => {
...
@@ -68,11 +68,12 @@ const BatchNode = (props: IBatchNode) => {
className=
{
styles
.
handleBox
}
className=
{
styles
.
handleBox
}
id=
{
item
.
name
}
id=
{
item
.
name
}
style=
{
{
style=
{
{
background
:
"#fff
"
,
background
Color
:
"rgba(19, 112, 255, 1)
"
,
border
:
item
.
error
border
:
item
.
error
?
"1px solid #FF4E4E"
?
"1px solid #FF4E4E"
:
"1px solid #
D1D6DE
"
,
:
"1px solid #
fff
"
,
left
:
index
*
24
+
20
,
left
:
index
*
24
+
20
,
top
:
'-47px'
,
}
}
}
}
type=
"target"
type=
"target"
position=
{
Position
.
Top
}
position=
{
Position
.
Top
}
...
@@ -99,8 +100,8 @@ const BatchNode = (props: IBatchNode) => {
...
@@ -99,8 +100,8 @@ const BatchNode = (props: IBatchNode) => {
className=
{
styles
.
handleBox
}
className=
{
styles
.
handleBox
}
id=
{
item
.
name
}
id=
{
item
.
name
}
style=
{
{
style=
{
{
background
:
"#fff
"
,
background
Color
:
"rgba(19, 112, 255, 1)
"
,
border
:
"1px solid #
D1D6DE
"
,
border
:
"1px solid #
FFF
"
,
left
:
index
*
24
+
20
,
left
:
index
*
24
+
20
,
}
}
}
}
type=
"source"
type=
"source"
...
...
src/views/Project/components/Flow/components/BatchOperatorFlow/index.tsx
View file @
1d6dd4f4
...
@@ -151,13 +151,13 @@ const BatchOperatorFlow = (props: IProps) => {
...
@@ -151,13 +151,13 @@ const BatchOperatorFlow = (props: IProps) => {
},
},
inStyle
:
{
inStyle
:
{
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
border
:
"
none
"
,
border
:
"
1px solid #FFF
"
,
left
:
12
,
left
:
12
,
top
:
"-2px"
,
top
:
"-2px"
,
},
},
outStyle
:
{
outStyle
:
{
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
backgroundColor
:
"rgba(19, 112, 255, 1)"
,
border
:
"
none
"
,
border
:
"
1px solid #FFF
"
,
left
:
12
,
left
:
12
,
bottom
:
"-2px"
,
bottom
:
"-2px"
,
},
},
...
...
src/views/Project/components/Flow/index.tsx
View file @
1d6dd4f4
...
@@ -270,14 +270,14 @@ const Flow = (props: IProps) => {
...
@@ -270,14 +270,14 @@ const Flow = (props: IProps) => {
return
a
-
b
;
return
a
-
b
;
});
});
let
width
=
176
,
let
width
=
176
,
height
=
22
;
height
=
66
;
if
(
positionXArr
?.
length
)
{
if
(
positionXArr
?.
length
)
{
const
val
=
positionXArr
[
positionXArr
.
length
-
1
]
+
1
50
;
const
val
=
positionXArr
[
positionXArr
.
length
-
1
]
+
1
44
;
width
=
val
>
176
?
val
:
width
;
width
=
val
>
176
?
val
:
width
;
}
}
if
(
positionYArr
?.
length
)
{
if
(
positionYArr
?.
length
)
{
const
val
=
positionYArr
[
positionYArr
.
length
-
1
]
+
6
;
const
val
=
positionYArr
[
positionYArr
.
length
-
1
]
+
74
;
height
=
val
>
22
?
val
:
height
;
height
=
val
>
66
?
val
:
height
;
}
}
return
{
return
{
width
,
width
,
...
@@ -318,7 +318,8 @@ const Flow = (props: IProps) => {
...
@@ -318,7 +318,8 @@ const Flow = (props: IProps) => {
/** 样式 */
/** 样式 */
style
:
{
style
:
{
...
getBatchStyle
(
item
),
...
getBatchStyle
(
item
),
padding
:
isFlowNode
(
item
.
id
)
?
"20px"
:
"12px 20px"
,
marginTop
:
'-44px'
,
padding
:
"12px 20px"
,
},
},
},
},
/** 坐标 */
/** 坐标 */
...
...
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