[英]Add border to MUI DataGrid Row
方法一:(簡單)
將showCellRightBorder={true}
添加到您的Datagrid
組件
方法二:(提供定制)
將以下 css 添加到Datagrid
組件的sx
屬性中。
CODE TO BE REMOVED:
// "& .MuiDataGrid-row": {
// borderTop: 1,
// borderBottom: 0
// },
CODE TO BE ADDED:
"& .MuiDataGrid-cell": {
border: 1,
borderRight: 0,
borderTop: 0,
// add more css for customization
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.