From a78dca19cf33a478187788c9423db5c7ee29d6a9 Mon Sep 17 00:00:00 2001 From: "songwanli2025@163.com" Date: Fri, 27 Dec 2019 14:46:20 +0800 Subject: [PATCH] fix(menu): remove ul default margin --- packages/nimbus/NewServiceLayout/src/main.vue | 7 +++---- styles/Menu.scss | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nimbus/NewServiceLayout/src/main.vue b/packages/nimbus/NewServiceLayout/src/main.vue index 29f0e11af..889f2bd9c 100644 --- a/packages/nimbus/NewServiceLayout/src/main.vue +++ b/packages/nimbus/NewServiceLayout/src/main.vue @@ -96,7 +96,6 @@ export default { } }, render (h) { - let _this = this const siderProps = { 'show-toggle-button': true, 'show-trigger': true, @@ -124,9 +123,9 @@ export default { return h('NMenuItem', { props: props, on: { - click: function () { - if (_this.$router && item.path) { - _this.$router.push(item.path) + click: () => { + if (this.$router && item.path) { + this.$router.push(item.path) } } } diff --git a/styles/Menu.scss b/styles/Menu.scss index e5ed8d43a..fc3c9946d 100644 --- a/styles/Menu.scss +++ b/styles/Menu.scss @@ -20,6 +20,7 @@ $layout-nav-height: 64px; @include b(menu-list) { list-style: none; + margin: 0; padding: 0; @include b(menu-item) { cursor: pointer;