Table
FAQ
自定义表头
columns: {
// title: '当前财务公允价值',
title: downSelect('当前财务公允价值'),
dataIndex: 'fmv',
key: 'fmv',
align: 'right',
width: 200,
render: (text, record) => {
return (
text == null ? '-' : <span>{setCurrency(record)} {moneyFormat(text)}</span>,
)
},
}
const downSelect = (title) => {
return (
<div className="irr-table-header">
<div>{title}</div>
<Select defaultValue="2021-12-31" style={{width: "100%", border: "none"}}>
<Option value="0">2021-12-31</Option>
<Option value="1">2021-12-30</Option>
<Option value="2">2021-12-29</Option>
<Option value="3">2021-12-28</Option>
</Select>
</div>
)
}
<Table
columns={columns}
...
/>