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
2024-02-20 17:08:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e1da5b2bf37ed01efb44bdc3a622501f14d7f569
e1da5b2b
1 parent
e93942e2
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
doc/App.vue
doc/App.vue
View file @
e1da5b2
...
...
@@ -907,12 +907,17 @@ export default {
localStorage.setItem('showConfirmation', '0');
});
// 监听 resize 事件
// window.addEventListener('resize', function () {
// state.detailModel = null;
// editor.closeModel();
// });
window.addEventListener('resize', function () {
setTimeout(() => {
nextTick(() => {
// 预览流程图的背景
$('.preview-container').find('.g6-grid').parent().css('zIndex', '0');
$('.preview-container').find('canvas').css('zIndex', '1').css('position', 'relative');
})
}, 500);
});
// 适口高度
state.window_height = $(window).height() -
20
0 + 'px';
state.window_height = $(window).height() -
15
0 + 'px';
});
/**
...
...
@@ -2274,10 +2279,11 @@ export default {
// state.detailModel = model;
console.warn(model);
if (model.id !== 'start-node') {
state.preview_form_url = 'https://oa-dev.onwall.cn/f/custom_form/front/index.html#/?code=fboupg&model=preview'
} else {
if (model.id === 'end-node' || model.id === 'start-node') {
ElNotification.error('该节点无法预览');
state.preview_form_url = null;
} else {
state.preview_form_url = 'https://oa-dev.onwall.cn/f/custom_form/front/index.html#/?code=fboupg&model=preview'
}
}
...
...
@@ -2620,8 +2626,11 @@ body {
}
.preview-dialog {
.el-dialog__body {
padding-right: 0;
padding-left: 0;
padding: 0;
padding-bottom: 25px;
}
.el-dialog__footer {
padding: 0;
}
}
.preview-detail-container {
...
...
Please
register
or
login
to post a comment