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) {
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)
}
}
}

View File

@ -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;