9.24禅道bug修复

szh-new
lijingjia 2 months ago
parent c8f7a40f76
commit e5add46c56

@ -21,13 +21,6 @@
const zoom = ref(100) const zoom = ref(100)
const getScale = computed(() => zoom.value / 100) const getScale = computed(() => zoom.value / 100)
const isDark = ref<boolean>(false) const isDark = ref<boolean>(false)
const handleToggleDark = () => {
if (isDark.value) {
document.documentElement.classList.add('dark')
} else {
document.documentElement.classList.remove('dark')
}
}
const openPenal = (node: FlowNode) => { const openPenal = (node: FlowNode) => {
nodePenalRef.value?.open(node) nodePenalRef.value?.open(node)
} }
@ -87,22 +80,11 @@
<template> <template>
<div class="designer-container"> <div class="designer-container">
<!-- <div class="dark">
<el-switch
inline-prompt
:active-icon="Sunny"
:inactive-icon="Moon"
@change="handleToggleDark"
v-model="isDark"
/>
</div> -->
<!--放大/缩小--> <!--放大/缩小-->
<div class="zoom"> <div class="zoom">
<el-button :icon="Plus" :disabled="zoom >= 170" circle @click="zoom += 10"></el-button> <el-button :disabled="zoom >= 170" circle @click="zoom += 10">放大</el-button>
<span>{{ zoom }}%</span> <span>{{ zoom }}%</span>
<el-button :icon="Minus" circle :disabled="zoom <= 50" @click="zoom -= 10"></el-button> <el-button circle :disabled="zoom <= 50" @click="zoom -= 10">缩小</el-button>
<!-- <el-button @click="validate"></el-button>
<el-button @click="converterBpmn" type="primary" :icon="Download">转bpmn</el-button> -->
</div> </div>
<!--流程树--> <!--流程树-->
<div class="node-container"> <div class="node-container">

Loading…
Cancel
Save