Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
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
2023-11-30 15:06:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2c74bb3791f670ed88e02560ac577ef3c58d3b28
2c74bb37
1 parent
293ebe1b
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
doc/App.vue
doc/App.vue
View file @
2c74bb3
...
...
@@ -1327,17 +1327,16 @@ export default {
*/
function handleAfterAdd(model: myObj, type: string) {
if (type === 'node') {
console.log(`新增节点`)
//
console.log(`新增节点`)
flowData.value.nodes = editor.editorState.graph.save().nodes
}
if (type === 'edge') {
console.log(`新增连接线`)
//
console.log(`新增连接线`)
flowData.value.edges = editor.editorState.graph.save().edges
}
}
function onClickCanvas(e: myEvent) {
console.log('单击画布');
state.detailModel = null;
editor.closeModel()
}
...
...
@@ -1348,9 +1347,7 @@ export default {
* @param {myEvent} e - The event object containing information about the drag and drop.
*/
function onDragEndNode(e: myEvent) {
// TODO:可能需要接口保存相应位置,避免拖动窗口时数据丢失
const model = e.item.get('model')
console.log('onDragEndNode', model)
}
const copyData = () => { // 复制节点回调
...
...
Please
register
or
login
to post a comment