我是新的反应,我刚刚开始使用反应表。
我注意到,在React Table中,当我们定义列数组时,列对象有标头、访问器、maxWidth、minResizeWidth、headerStyle、Cell等。
标头和单元格大写,但其余属性遵循骆驼大小写约定。
这是有更深的意义,还是它只是一个错误?
例如:
const columns = [
{
Header: 'Store',
accessor: 'storeName',
minResizeWidth: 50,
headerStyle: { textAlign: 'left' },
},
{
Header: 'Current Rate',
accessor: 'rate',
maxWidth: 120,
},
{
Header: 'Effective From',
accessor: 'fromDate',
Cell: renderDateCell,
maxWidth: 120,
},
];https://stackoverflow.com/questions/56705886
复制相似问题