Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
logic-flow2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-03-13 15:36:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
130d193359820e4dcf27019716f6fec9bce577d0
130d1933
1 parent
4f754634
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
src/views/adv-node/anchor/index.vue
src/views/adv-node/anchor/index.vue
View file @
130d193
<!--
* @Date: 2025-03-10 16:52:35
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-1
2 23:36:42
* @LastEditTime: 2025-03-1
3 11:05:36
* @FilePath: /logic-flow2/src/views/adv-node/anchor/index.vue
* @Description: 自定义锚点
-->
...
...
@@ -9,6 +9,9 @@
<div class="helloworld-app sql container">
<div ref="container" class="app-content flow-container"></div>
<button @click="handleAddField">Users添加字段</button>
<div @click="getData()" style="position: absolute; right: 10px; top: 10px;">
查看数据
</div>
</div>
</template>
...
...
@@ -83,6 +86,13 @@ onMounted(() => {
}
});
});
// 查看数据
const getData = () => {
console.log('图数据结构:', lf.getGraphData());
console.log(lf.graphModel.nodes);
console.log(lf.graphModel.edges);
};
</script>
<style scoped>
...
...
Please
register
or
login
to post a comment