记录一次react + typescript + antd 中table配置项 columns居中问题
在项目中直接写const columns = [ { title: '供应商ID', dataIndex: 'name', key: 'name', align: 'center' },typscript会检测报错处理方式:一:const columns = [ { title: '供应商ID', dataIndex: 'name', key: 'name', align:'center' as 'center',
转载
2021-10-13 19:38:09 ·
537 阅读 ·
0 评论