[英]material-table filtering: filterCellStyle backgroundColor not applied to entire row
材質表過濾:過濾單元格樣式的背景顏色不應用於整行。 為行選擇創建的列有自己的樣式,我不知道如何覆蓋它。
代碼示例: https ://codesandbox.io/s/material-table-filter-selection-forked-t9vb54?file=/src/App.js
只需將其添加到您的style.css
文件中:
.App
.MuiTableBody-root .MuiTableRow-root:first-of-type {
background: #6ABAC9;
}
你也可以刪除這個道具:
filterCellStyle: {
backgroundColor: "#6ABAC9"
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.