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-07-15 16:23:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
400df6deff9088701a291e437b7b04c7e81ac69d
400df6de
1 parent
0c214d0c
fix 预览页面滚动条显示问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/editor/vue-flow-editor-preview1.vue
src/editor/vue-flow-editor-preview1.vue
View file @
400df6d
<!--
* @Date: 2023-12-18 15:01:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-15 1
1:23:30
* @LastEditTime: 2024-07-15 1
6:22:18
* @FilePath: /vue-flow-editor/src/editor/vue-flow-editor-preview1.vue
* @Description: 文件描述
-->
<template>
<transition name="vue-flow-editor-preview-transition">
<div class="vue-flow-editor-preview1" v-if="p_value">
<div class="vue-flow-editor-preview-body" ref="body"
style="overflow: auto;"
>
<div class="vue-flow-editor-preview-body" ref="body">
<div class="vue-flow-editor-preview-target" ref="target"></div>
</div>
<div style="position: fixed; bottom: 1rem; right: 1rem; font-size: 25px;">
...
...
@@ -80,6 +80,7 @@
this.$emit('input', this.p_value)
},
zoomIn() {
this.$refs.body.style.overflow = 'auto';
const container = this.$refs.target
this.currentWidth = this.currentWidth + 100;
this.currentHeight = this.currentHeight + 100;
...
...
@@ -105,6 +106,7 @@
this.graph.fitView(20)
},
zoomOut() {
this.$refs.body.style.overflow = 'auto';
const container = this.$refs.target
this.currentWidth = this.currentWidth - 100;
this.currentHeight = this.currentHeight - 100;
...
...
Please
register
or
login
to post a comment