提交 ce1e6cf0 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 4791c309
......@@ -14,7 +14,7 @@
"@fortaine/fetch-event-source": "^3.0.6",
"@tinymce/tinymce-vue": "^5.0.1",
"@vue-flow/controls": "^1.1.2",
"@vue-flow/core": "^1.38.5",
"@vue-flow/core": "^1.39.0",
"@vueuse/components": "^10.11.0",
"@vueuse/core": "^10.9.0",
"axios": "^1.6.8",
......@@ -1980,9 +1980,10 @@
}
},
"node_modules/@vue-flow/core": {
"version": "1.38.5",
"resolved": "https://registry.npmjs.org/@vue-flow/core/-/core-1.38.5.tgz",
"integrity": "sha512-Bu1bmHNeyDN1r26yNCfrM2zJGS8S5w/H8yJJf2AtIALQT6TwOuOn8y0urzwbX8LqLW2h896O89yIOSkVC2lEOA==",
"version": "1.39.0",
"resolved": "https://registry.npmjs.org/@vue-flow/core/-/core-1.39.0.tgz",
"integrity": "sha512-QBcKFrLV5a6f+DmTALQQtNRKKF7q6HRd2KOVx0ygoHOUK0vwcawoOPd3KNpKVDOVjbf/D/L9zM5hrqruW6JjmQ==",
"license": "MIT",
"dependencies": {
"@vueuse/core": "^10.5.0",
"d3-drag": "^3.0.0",
......
......@@ -21,7 +21,7 @@
"@fortaine/fetch-event-source": "^3.0.6",
"@tinymce/tinymce-vue": "^5.0.1",
"@vue-flow/controls": "^1.1.2",
"@vue-flow/core": "^1.38.5",
"@vue-flow/core": "^1.39.0",
"@vueuse/components": "^10.11.0",
"@vueuse/core": "^10.9.0",
"axios": "^1.6.8",
......
......@@ -234,6 +234,7 @@ defineExpose({ generateImage, generatePdf })
:edges="tripStore.edges"
:zoom-on-scroll="false"
:prevent-scrolling="false"
:pan-on-drag="false"
disabled
style="height: 200px; margin: 20px 0"></Flow>
<p>相关节点设计说明如下:</p>
......@@ -258,6 +259,7 @@ defineExpose({ generateImage, generatePdf })
:edges="item.data.edges"
:zoom-on-scroll="false"
:prevent-scrolling="false"
:pan-on-drag="false"
disabled
style="height: 200px; margin: 20px 0"
v-if="item.data.nodes?.length"></Flow>
......
......@@ -32,6 +32,8 @@ onConnect(params => {
const { layout } = useLayout(findNode)
async function layoutGraph(direction) {
if (props.disabled) return
console.log('layoutGraph', direction)
setNodes(layout(nodes.value, edges.value, direction))
nextTick(() => {
fitView()
......@@ -42,6 +44,7 @@ async function layoutGraph(direction) {
<template>
<VueFlow
:id="id"
fit-view-on-init
:connection-radius="30"
:nodes-draggable="false"
:nodes-connectable="false"
......
......@@ -6,6 +6,7 @@
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.flow-node-start {
border-radius: 30px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论