diff --git a/src/components/RightPanel/index.vue b/src/components/RightPanel/index.vue index 98d27df3..dda00837 100644 --- a/src/components/RightPanel/index.vue +++ b/src/components/RightPanel/index.vue @@ -2,7 +2,7 @@
-
+
@@ -21,11 +21,15 @@ export default { clickNotClose: { default: false, type: Boolean + }, + buttonTop: { + default: 240, + type: Number } }, data() { return { - show: true + show: false } }, watch: { @@ -48,7 +52,7 @@ export default { window.addEventListener('click', this.closeSidebar) }, closeSidebar(evt) { - const parent = evt.target.closest('.rightPanel-container') + const parent = evt.target.closest('.rightPanel') if (!parent) { this.show = false window.removeEventListener('click', this.closeSidebar) @@ -118,7 +122,6 @@ export default { position: absolute; left: -48px; border-radius: 4px 0 0 4px !important; - top: 240px; width: 48px; height: 48px; background: #1890ff; diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index 65a5da9b..213f1189 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -10,10 +10,10 @@
-
+