diff --git a/frontend/src/components/canvas/components/Editor/ContextMenu.vue b/frontend/src/components/canvas/components/Editor/ContextMenu.vue
index fc875e497e..f2394163c4 100644
--- a/frontend/src/components/canvas/components/Editor/ContextMenu.vue
+++ b/frontend/src/components/canvas/components/Editor/ContextMenu.vue
@@ -1,92 +1,96 @@
-
+
@@ -123,4 +127,4 @@ export default {
}
}
}
-
\ No newline at end of file
+
diff --git a/frontend/src/components/canvas/components/Editor/Shape.vue b/frontend/src/components/canvas/components/Editor/Shape.vue
index 3d2cfc2c35..c2ebc6bc61 100644
--- a/frontend/src/components/canvas/components/Editor/Shape.vue
+++ b/frontend/src/components/canvas/components/Editor/Shape.vue
@@ -2,6 +2,14 @@
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/canvas/components/Toolbar.vue b/frontend/src/components/canvas/components/Toolbar.vue
index a10461c18b..da7e773473 100644
--- a/frontend/src/components/canvas/components/Toolbar.vue
+++ b/frontend/src/components/canvas/components/Toolbar.vue
@@ -31,6 +31,12 @@
+
+
+
+ 关闭
+
+
@@ -46,6 +52,7 @@ import { commonStyle, commonAttr } from '@/components/canvas/custom-component/co
import eventBus from '@/components/canvas/utils/eventBus'
import { deepCopy } from '@/components/canvas/utils/utils'
import { post } from '@/api/panel/panel'
+import bus from '@/utils/bus'
export default {
data() {
@@ -77,6 +84,10 @@ export default {
this.scale = this.canvasStyleData.scale
},
methods: {
+ closePanelEdit() {
+ debugger
+ bus.$emit('PanelSwitchComponent', { name: 'PanelMain' })
+ },
goFile() {
this.$refs.files.click()
},
diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue
index 87e5868132..6003b3c937 100644
--- a/frontend/src/views/panel/edit/index.vue
+++ b/frontend/src/views/panel/edit/index.vue
@@ -67,6 +67,7 @@
+
@@ -94,6 +95,7 @@ import 'element-ui/lib/theme-chalk/index.css'
import '@/components/canvas/styles/reset.css'
import { ApplicationContext } from '@/utils/ApplicationContext'
export default {
+ name: 'PanelEdit',
components: {
DeMainContainer,
DeContainer,
@@ -102,11 +104,11 @@ export default {
ViewSelect,
Editor,
Toolbar
-
},
data() {
return {
show: false,
+ editView: false,
clickNotClose: false,
showIndex: -1,
activeName: 'attr',
diff --git a/frontend/src/views/panel/index.vue b/frontend/src/views/panel/index.vue
index 92a7295752..ed7a82ce00 100644
--- a/frontend/src/views/panel/index.vue
+++ b/frontend/src/views/panel/index.vue
@@ -1,25 +1,5 @@