要实现以上工作流程图,需要用到"d3": "5.16.0"、"dagre-d3": "0.6.4"两个依赖,直接上代码
<!--Created by lyn on 2021-09-09 15:50:16-->
<template>
<div>
<a-modal
:visible="show"
:title="title"
@ok="closeModal"
@cancel="closeModal"
:closable="true"
:centered="true"
:maskClosable="false"
:destroyOnClose="true"
:width="flowWidth + 62"
>
<a-button slot="footer" @click="closeModal">关闭</a-button>
<div v-show="loading" class="loading">
<a-spin />
</div>
<!-- <div :style="{height: &