|
|
@@ -1,5 +1,5 @@
|
|
|
<script setup lang="ts">
|
|
|
-import { tryOnMounted } from '@vueuse/core';
|
|
|
+import { tryOnMounted, tryOnUnmounted } from '@vueuse/core';
|
|
|
import { GraphModel } from '@logicflow/core';
|
|
|
import { VueNodeModel } from '@logicflow/vue-node-registry';
|
|
|
|
|
|
@@ -92,6 +92,7 @@ tryOnMounted(() => {
|
|
|
(event) => event.data?.id === id.value
|
|
|
);
|
|
|
});
|
|
|
+tryOnUnmounted(() => { popover.value = false; });
|
|
|
|
|
|
function updateProperties(props: FlowNodeProperties) {
|
|
|
properties.value = Object.assign(properties.value, props);
|
|
|
@@ -158,7 +159,7 @@ function link(targetNodeId: string) {
|
|
|
}
|
|
|
|
|
|
.popover-content-wrapper {
|
|
|
- min-width: 300px;
|
|
|
+ max-width: 300px;
|
|
|
.title {
|
|
|
margin-bottom: 8px;
|
|
|
color: rgba(0, 0, 0, 0.88);
|