From 556b5bf6fc23415669ce0b0e568037329419b8a7 Mon Sep 17 00:00:00 2001 From: chenghongxing <1126263215@qq.com> Date: Thu, 17 Sep 2020 13:22:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20display=20problem=20of=20menu=20item's?= =?UTF-8?q?=20title=20in=20collapsed=20state;=20:bug:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=EF=BC=9A=E6=8A=98=E5=8F=A0=E7=8A=B6=E6=80=81=E4=B8=8B=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E9=A1=B9=E6=A0=87=E9=A2=98=E7=9A=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/menu/menu.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = []