You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
透视表树状模式布局中, 我想根据不同的列设置下单元格的斑马线颜色。目前列头已经根据不同的列设置了不同的颜色,所以在单元格中希望斑马线和列头颜色保持一致。
const theme = {
scrollBar: {
size: 9,
},
dataCell: {
cell: {
backgroundColor: "#fff",
crossBackgroundColor: "#FCFCFC",
padding:{
right:15
}
},
},
};
但是我看API里面关于表格斑马线的设置中crossBackgroundColor只支持字符串设置。
我又去根据CustomDataCell去自定义单元格的背景颜色(根据奇数偶数就可以达到斑马线效果),功能实现了,但是这样又面临一个新的问题。antv表格树结构可以展开收起,这样有可能会造成两个相邻的行的单元格背景颜色一样,效果会差一些。
各位大佬有没有好的思路或者实现方式,帮忙看看
Beta Was this translation helpful? Give feedback.
All reactions