mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(menu): remove ul default margin
This commit is contained in:
parent
a40a490ea3
commit
a78dca19cf
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user