将默认图标添加到react-table中的未排序列标题

我正在使用以下方法将图标添加到已排序的列标题。如何将图标添加到未排序的列。

.ReactTable .rt-thead .rt-th.-sort-asc,

.ReactTable .rt-thead .rt-td.-sort-asc {

box-shadow: inset 0 0px 0 0 rgba(0,0.6)

}

.ReactTable .rt-thead .rt-th.-sort-desc,

.ReactTable .rt-thead .rt-td.-sort-desc {

box-shadow: inset 0 0px 0 0 rgba(0,0.6);

}

div.sort-desc ::之后{

content: " \25BC";
/* content:"\02C5"; */
float: center;

}

div.sort-asc ::之后{

content: " \25B2";

/* content:"\02C4"; */

float: center;

}

haishizhende 回答:将默认图标添加到react-table中的未排序列标题

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3083821.html

大家都在问