【发布时间】:2023-02-17 19:45:13
【问题描述】:
我正在将 mui-datatables v ^4.2.2" 与 react 和 react-dom 17.0.2 以及@mui/material v5.10.15 一起使用。
当我显示数据表时,我的分页对齐被破坏了:
最后这些是我的 mui 数据表的选项
export const options = { tableBodyHeight: `${window.innerHeight - 48 - 64}px`, customSearchRender: () => <></>, search: false, selectableRows: 'none' as const, setRowProps: () => { return { style: { cursor: 'pointer' }, }; }, };我没有应用任何样式,无论是在主题提供者中,还是在 sx 道具中。 我第一次遇到这个问题,不明白为什么会这样。
如果有人遇到过这个问题并知道解决方案,将不胜感激任何建议。
【问题讨论】:
标签: reactjs mui-datatable mui5