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) {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user