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 14:46:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ff53133e0adf78501a391883159e32cfe63e48bd
ff53133e
1 parent
1658755d
fix 修复点击默认流程节点时显示问题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
doc/App.vue
doc/App.vue
View file @
ff53133
...
...
@@ -481,12 +481,12 @@
<el-dialog class="preview-dialog" v-model="state.dialogPreviewVisible" title="预览节点流程" width="100%" center style="margin-top: 0; margin-bottom: 0;">
<div class="preview-container" :style="{height: state.window_height}">
<vue-flow-editor-form
ref="editor"
ref="editor
1
"
:height="state.window_height"
:data="flowData"
:grid="showGrid"
:miniMap="showMiniMap"
:onRef="onRef"
:onRef="onRef
1
"
:multipleSelect="showMultipleSelect"
:loading="state.editorLoading"
@click-canvas="onClickCanvasPreview"
...
...
@@ -1453,9 +1453,6 @@ export default {
* @param {Event} e - The event object representing the click event.
*/
const onClickNode = async (e: myEvent) => {
// TODO: 有一个预览状态可以看到节点相应的表单内容
console.warn('点击节点,如果预览状态,可以预览表单内容');
const model = G6.Util.clone(e.item.get('model')); // 节点的基本属性
model.style = model.style || {}
model.labelCfg = model.labelCfg || { style: {} }
...
...
@@ -2268,7 +2265,7 @@ export default {
model.data = model.data ? model.data : {};
state.detailModel = model;
//
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'
...
...
Please
register
or
login
to post a comment