Iview: Table组件resize的问题

Created on 4 Sep 2017  ·  3Comments  ·  Source: iview/iview





后台管理系统,展开收缩左侧菜单后,table出现横线滚动条,宽度是足够的,看源码并没有给我们提供一个事件来让我们resize table的宽度,只有在浏览器窗口改变大小的时候,才会resize;
大大如果能看懂我说的问题,希望你们花点时间解决一下。

Most helpful comment

全局覆盖样式就可以解决

table{
width: 100% !important;
table-layout: auto;
}

All 3 comments

遇到同样的问题,页面加载后table不是100%宽度

全局覆盖样式就可以解决

table{
width: 100% !important;
table-layout: auto;
}

更新到最新版,如有问题再另开 issue。

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chenhaizano picture chenhaizano  ·  3Comments

agileago picture agileago  ·  3Comments

lichinlichin picture lichinlichin  ·  3Comments

animabear picture animabear  ·  3Comments

no5no6 picture no5no6  ·  3Comments