hookehuyr

fix

<!--
* @Date: 2025-03-10 16:52:35
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-12 23:36:42
* @LastEditTime: 2025-03-13 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>
......