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-21 15:36:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d1f831ce047a91cabeb4d0eab2002e76a4c3ec9f
d1f831ce
1 parent
8724eae3
预览弹出方式调整
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
5 deletions
doc/App.vue
doc/App.vue
View file @
d1f831c
...
...
@@ -478,7 +478,7 @@
</template>
</el-dialog>
<el-dialog class="preview-dialog" v-model="state.dialogPreviewVisible" title="预览节点流程" width="100%" center style="margin-top: 0; margin-bottom: 0;">
<
!--<
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="editor1"
...
...
@@ -499,11 +499,42 @@
</div>
<template #footer>
<span class="dialog-footer">
<!
-- <el-button @click="state.dialogPreviewVisible = false">取消</el-button> --
>
<!
~~ <el-button @click="state.dialogPreviewVisible = false">取消</el-button> ~~
>
<el-button color="#009688" @click="state.dialogPreviewVisible = false">关闭</el-button>
</span>
</template>
</el-dialog>
</el-dialog>-->
<el-drawer
v-model="state.dialogPreviewVisible"
title="预览节点流程"
direction="btt"
size="90%"
append-to-body
>
<!-- <div class="preview-container" :style="{height: state.window_height}"> -->
<div class="preview-container">
<vue-flow-editor-form
ref="editor1"
:height="state.window_height"
:data="flowData"
:miniMap="showMiniMap"
:onRef="onRef1"
:multipleSelect="showMultipleSelect"
:loading="state.editorLoading"
@click-canvas="onClickCanvasPreview"
@click-node="onClickNodePreview"
:controlConfig="state.controlConfig"
:toolbarButtonHandler="toolbarButtonHandler"
></vue-flow-editor-form>
</div>
<div class="preview-detail-container">
<iframe :src="state.preview_form_url" width="100%" height="100%" style="border: 0;"></iframe>
</div>
<!-- <div>
<el-button color="#009688" @click="state.dialogPreviewVisible = false">关闭</el-button>
</div> -->
</el-drawer>
</template>
<script lang="ts">
...
...
@@ -675,6 +706,7 @@ export default {
show_preview: false,
window_height: '500px',
preview_form_url: '',
drawer: false,
});
const setNodeTree = (id: string, data: object) => {
...
...
@@ -917,7 +949,7 @@ export default {
}, 500);
});
// 适口高度
state.window_height = $(window).height() -
15
0 + 'px';
state.window_height = $(window).height() -
21
0 + 'px';
});
/**
...
...
@@ -2644,11 +2676,16 @@ body {
z-index: 9;
width: 30vw;
height: 80vh;
top: 1
0
vh;
top: 1
8
vh;
right: 20px;
border: 1px solid #c3c3c3;
background: #fff;
/* padding: 1rem; */
/* border-radius: 5px; */
}
.el-drawer.btt {
-webkit-animation: none !important;
animation: none !important;
}
</style>
...
...
Please
register
or
login
to post a comment