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-17 18:05:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
abcc81067e4f3b2c379bfad464ec6f931cc8d70c
abcc8106
1 parent
17192a97
监听窗口变化清空选中数据
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
doc/App.vue
doc/App.vue
View file @
abcc810
...
...
@@ -523,6 +523,11 @@ export default {
// 设置标志位为 false,避免在刷新页面时再次显示提示框
showConfirmation = false;
});
// 监听 resize 事件
window.addEventListener('resize', function () {
state.detailModel = null;
editor.closeModel();
});
})
function handleActiveChange(name) {
...
...
@@ -983,6 +988,7 @@ export default {
function onClickCanvas(e: myEvent) {
console.log('单击画布');
state.detailModel = null;
editor.closeModel()
}
...
...
Please
register
or
login
to post a comment