antd Table 可伸缩列没有效果

Posted greenteaone

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了antd Table 可伸缩列没有效果相关的知识,希望对你有一定的参考价值。

把antd 中的Table可伸缩示例代码,下载到自己的代码中发现,鼠标放到表格的边框上,并没有出现可伸缩鼠标样式,最后的解决方法是在css样式中添加下面的样式,就解决问题了。

.react-resizable {
    position: relative;
    background-clip: padding-box;
  }
  
.react-resizable-handle {
    position: absolute;
    width: 10px;
    height: 100%;
    bottom: 0;
    right: -5px;
    cursor: col-resize;
    z-index: 1;
  }

 

以上是关于antd Table 可伸缩列没有效果的主要内容,如果未能解决你的问题,请参考以下文章

React:antd的table可伸缩列

antd table实现可伸缩列

React+antd table中的每列内容换行

antd table 让行宽不变

antd table可编辑列显示不了数据

在antd的table中内嵌分页按钮