diff --git a/src/components/menu/menu.js b/src/components/menu/menu.js index 49ef98f..315d0c3 100644 --- a/src/components/menu/menu.js +++ b/src/components/menu/menu.js @@ -134,10 +134,10 @@ export default { return h( 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), - h('span', [this.$t(getI18nKey(menu.fullPath))]) + this.$t(getI18nKey(menu.fullPath)) ] ) ] @@ -145,10 +145,10 @@ export default { }, renderSubMenu: function (h, menu) { 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), - h('span', [this.$t(getI18nKey(menu.fullPath))]) + this.$t(getI18nKey(menu.fullPath)) ] )] let itemArr = []