簡體   English   中英

材料表過濾:filterCellStyle backgroundColor 未應用於整行

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM