@javaguns/flow-ui
Version:
``` <template> <a-spin :spinning="loading"> <FlowDesigner ref="flowDesigner" top="50px"> </FlowDesigner> </a-spin> </template> <script lang="ts" setup> import { ref, provide, onMounted } from 'vue'; import { FlowDesigner, LoadingKey } from '@j
103 lines (102 loc) • 2.19 kB
CSS
.guns-flow-node-route {
position: relative;
display: flexbox;
display: flex;
flex-direction: row;
border-top: 1px solid #cccfdb;
border-bottom: 1px solid #cccfdb;
}
.guns-flow-node-route .clear-left-border,
.guns-flow-node-route .clear-right-border {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
.guns-flow-node-route .branch-node {
position: absolute;
top: 0;
left: 50%;
z-index: 2;
transform: translate(-50%, -50%);
cursor: pointer;
}
.guns-flow-node-route .meet-node {
position: absolute;
bottom: 0;
left: 50%;
z-index: 2;
transform: translate(-50%, 50%);
}
.guns-flow-node-route .guns-flow-node-branch {
display: flexbox;
display: flex;
flex-direction: column;
position: relative;
}
.guns-flow-node-route .guns-flow-node-branch .clear-left-border {
left: 0;
}
.guns-flow-node-route .guns-flow-node-branch .clear-left-border::before {
content: '';
position: absolute;
left: 0;
top: -5px;
width: 50%;
background: #f2f3f5;
height: 10px;
}
.guns-flow-node-route .guns-flow-node-branch .clear-left-border::after {
content: '';
position: absolute;
left: 0;
bottom: -5px;
width: 50%;
background: #f2f3f5;
height: 10px;
}
.guns-flow-node-route .guns-flow-node-branch .clear-right-border {
right: 0;
}
.guns-flow-node-route .guns-flow-node-branch .clear-right-border::before {
content: '';
position: absolute;
right: -0.5px;
top: -5px;
width: 50%;
background: #f2f3f5;
height: 10px;
}
.guns-flow-node-route .guns-flow-node-branch .clear-right-border::after {
content: '';
position: absolute;
right: -0.5px;
bottom: -5px;
width: 50%;
background: #f2f3f5;
height: 10px;
}
.guns-flow-node-route .guns-flow-node-branch .guns-flow-node {
flex-grow: 1;
}
.guns-flow-node-route .guns-flow-node-branch .flow-node-branch {
margin-top: 20px;
}
.guns-flow-add-branche {
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
cursor: pointer;
border-radius: 50%;
padding: 2px;
font-size: 10px;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
background: #f1572a;
color: #fff;
}