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-12-05 17:04:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dbd6717a5d08d3514d421cb24ee81c03f66e4667
dbd6717a
1 parent
45ee6467
test
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
src/behavior/click-select.ts
src/editor/vue-flow-editor.tsx
src/behavior/click-select.ts
View file @
dbd6717
...
...
@@ -68,6 +68,7 @@ export function clickSelect(G6) {
}
else
{
if
(
self
.
shouldUpdate
.
call
(
self
,
e
))
{
selectChangeFlag
=
true
// 单选选中显示边框
graph
.
setItemState
(
item
,
SELECTED_STATE
,
true
);
}
graph
.
emit
(
'nodeselectchange'
,
{
target
:
item
,
select
:
true
});
...
...
@@ -83,6 +84,7 @@ export function clickSelect(G6) {
// node.hideAnchor(graph)
// });
// item.showAnchor(graph)
},
onCanvasClick
()
{
...
...
src/editor/vue-flow-editor.tsx
View file @
dbd6717
...
...
@@ -59,6 +59,9 @@ export default {
graph.on('canvas:click', (e) => {
context.emit('click-canvas', e)
})
graph.on('node:mousedown', (e) => {
context.emit('click-node-mousedown', e)
})
graph.on('node:click', (e) => {
context.emit('click-node', e)
})
...
...
Please
register
or
login
to post a comment