|
|
@ -134,10 +134,10 @@ export default { |
|
|
|
return h( |
|
|
|
return h( |
|
|
|
Item, {key: menu.fullPath}, |
|
|
|
Item, {key: menu.fullPath}, |
|
|
|
[ |
|
|
|
[ |
|
|
|
h('router-link', {props: {to: menu.fullPath}}, |
|
|
|
h('router-link', {props: {to: menu.fullPath}, attrs: {style: 'overflow:hidden;white-space:normal;text-overflow:clip;'}}, |
|
|
|
[ |
|
|
|
[ |
|
|
|
this.renderIcon(h, menu.meta ? menu.meta.icon : 'none', menu.fullPath), |
|
|
|
this.renderIcon(h, menu.meta ? menu.meta.icon : 'none', menu.fullPath), |
|
|
|
h('span', [this.$t(getI18nKey(menu.fullPath))]) |
|
|
|
this.$t(getI18nKey(menu.fullPath)) |
|
|
|
] |
|
|
|
] |
|
|
|
) |
|
|
|
) |
|
|
|
] |
|
|
|
] |
|
|
@ -145,10 +145,10 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
renderSubMenu: function (h, menu) { |
|
|
|
renderSubMenu: function (h, menu) { |
|
|
|
let this_ = this |
|
|
|
let this_ = this |
|
|
|
let subItem = [h('span', {slot: 'title'}, |
|
|
|
let subItem = [h('span', {slot: 'title', attrs: {style: 'overflow:hidden;white-space:normal;text-overflow:clip;'}}, |
|
|
|
[ |
|
|
|
[ |
|
|
|
this.renderIcon(h, menu.meta ? menu.meta.icon : 'none', menu.fullPath), |
|
|
|
this.renderIcon(h, menu.meta ? menu.meta.icon : 'none', menu.fullPath), |
|
|
|
h('span', [this.$t(getI18nKey(menu.fullPath))]) |
|
|
|
this.$t(getI18nKey(menu.fullPath)) |
|
|
|
] |
|
|
|
] |
|
|
|
)] |
|
|
|
)] |
|
|
|
let itemArr = [] |
|
|
|
let itemArr = [] |
|
|
|