fix(menu): remove ul default margin

This commit is contained in:
songwanli2025@163.com 2019-12-27 14:46:20 +08:00
parent a40a490ea3
commit a78dca19cf
2 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,6 @@ export default {
} }
}, },
render (h) { render (h) {
let _this = this
const siderProps = { const siderProps = {
'show-toggle-button': true, 'show-toggle-button': true,
'show-trigger': true, 'show-trigger': true,
@ -124,9 +123,9 @@ export default {
return h('NMenuItem', { return h('NMenuItem', {
props: props, props: props,
on: { on: {
click: function () { click: () => {
if (_this.$router && item.path) { if (this.$router && item.path) {
_this.$router.push(item.path) this.$router.push(item.path)
} }
} }
} }

View File

@ -20,6 +20,7 @@ $layout-nav-height: 64px;
@include b(menu-list) { @include b(menu-list) {
list-style: none; list-style: none;
margin: 0;
padding: 0; padding: 0;
@include b(menu-item) { @include b(menu-item) {
cursor: pointer; cursor: pointer;