Showing
1 changed file
with
11 additions
and
1 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-03-10 16:52:35 | 2 | * @Date: 2025-03-10 16:52:35 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-03-12 23:36:42 | 4 | + * @LastEditTime: 2025-03-13 11:05:36 |
| 5 | * @FilePath: /logic-flow2/src/views/adv-node/anchor/index.vue | 5 | * @FilePath: /logic-flow2/src/views/adv-node/anchor/index.vue |
| 6 | * @Description: 自定义锚点 | 6 | * @Description: 自定义锚点 |
| 7 | --> | 7 | --> |
| ... | @@ -9,6 +9,9 @@ | ... | @@ -9,6 +9,9 @@ |
| 9 | <div class="helloworld-app sql container"> | 9 | <div class="helloworld-app sql container"> |
| 10 | <div ref="container" class="app-content flow-container"></div> | 10 | <div ref="container" class="app-content flow-container"></div> |
| 11 | <button @click="handleAddField">Users添加字段</button> | 11 | <button @click="handleAddField">Users添加字段</button> |
| 12 | + <div @click="getData()" style="position: absolute; right: 10px; top: 10px;"> | ||
| 13 | + 查看数据 | ||
| 14 | + </div> | ||
| 12 | </div> | 15 | </div> |
| 13 | </template> | 16 | </template> |
| 14 | 17 | ||
| ... | @@ -83,6 +86,13 @@ onMounted(() => { | ... | @@ -83,6 +86,13 @@ onMounted(() => { |
| 83 | } | 86 | } |
| 84 | }); | 87 | }); |
| 85 | }); | 88 | }); |
| 89 | + | ||
| 90 | +// 查看数据 | ||
| 91 | +const getData = () => { | ||
| 92 | + console.log('图数据结构:', lf.getGraphData()); | ||
| 93 | + console.log(lf.graphModel.nodes); | ||
| 94 | + console.log(lf.graphModel.edges); | ||
| 95 | +}; | ||
| 86 | </script> | 96 | </script> |
| 87 | 97 | ||
| 88 | <style scoped> | 98 | <style scoped> | ... | ... |
-
Please register or login to post a comment