我用于https://ant.design/components/table/
反应本机项目。
我已经获取并且除了布尔值之外所有数据都有效!
有什么建议吗?
const columns = [
{
title: 'Test',
dataIndex: 'testbool',
key: 'testbool',
width: '20%',
}, ...
Run Code Online (Sandbox Code Playgroud)
小智 7
查看代码后,您可以尝试以下操作:
const columns = [{
title: 'Test',
dataIndex: 'testbool',
key: 'testbool',
width: '20%',
render : (text) => String(text),
}, ...
Run Code Online (Sandbox Code Playgroud)
这在我的代码中用于访问布尔值。希望它也适用于你。
归档时间: |
|
查看次数: |
1926 次 |
最近记录: |