我正在使用材料表(https://material-table.com/)。
我的问题是我想更改表格边框半径和表格阴影,显然,使用“选项功能”不存在此选项
但是当我检查表格时,我可以修改半径和阴影,如下所示:
我想知道如何从 Reactjs 覆盖这些值:
const useStyles = makeStyles(theme => ({
root: {
}
}));
const MainTable = props => {
const {className, params, ...rest} = props
(...)
return (
<MaterialTable
className={classes.MuiPaperRounded}
columns={[
{title: 'Equipement', field: 'equipement'},
{title: 'TAG', field: 'tag'},
{title: 'Nombre de points de mesures', field: 'nombreDePointsDeMesures'},
{title: 'Mesuré', field: 'mesure', type: 'boolean'}
]}
data={rows}
icons={(...)}
options={{
tableLayout: {backgroundColor: 'green'},
}}
title="Routine vibration"
/>
);
};
Run Code Online (Sandbox Code Playgroud) 我尝试通过 ssh 连接到 pgsql:
vagrant@homestead:~$ psql
psql: FATAL: role "vagrant" does not exist
Run Code Online (Sandbox Code Playgroud)
如您所见,我收到此错误消息 'psql: FATAL: role "vagrant" does not exist'
我在 Windows 操作系统中使用 vm-box
谢谢