iview When the height of the table is set by [Bug Report], if there are fewer rows, the scrollbar will not appear. If the expandable is set at the same time, when you click expand, the expanded content will not appear beyond the height of the scrollbar.
Translation of this issue: Environment Latest version Reproduction link https://run.iviewui.com/gVToZaIg Steps to reproduce Please run reappear links. What is expected? Scroll bars can appear automatically. What is actually happening? No scroll bars will appear automatically.
4条答案
按热度按时间erhoui1w1#
Translation of this issue:
Environment
Latest version
Reproduction link
https://run.iviewui.com/gVToZaIg
Steps to reproduce
Please run reappear links.
What is expected?
Scroll bars can appear automatically.
What is actually happening?
No scroll bars will appear automatically.
ymdaylpp2#
这个我也遇到过 确实是个bug 因为表格内容overflow的class样式是在渲染的时候探测表格高度有木有超过你设置的高度 超过才去添加一个class。所以 你自己设置一个公共样式 特定表格
#该表格id .ivu-table-body{
overflow-y: auto;
overflow-x: hidden;
}
l7mqbcuq3#
@weiyie 这样确实可以,多谢!
4xrmg8kj4#
也遇到这个问题了,原因如 @weiyie 所说,但通过设置公共css的方式没有解决。
最后是对 expand 的内容设置了 min-height,使其大于 table 的 height 来解决,不优雅但是有效。