Ant Design 组件table同一列写多个参数

 效果图:

Ant Design 组件table同一列写多个参数_第1张图片 

代码:

columns = [
		{
		{
			title: 
投放地区
, dataIndex: 'areaNames', render: val =>
{ val ? val : '--' }
, className: styles.tableCell, }, { title:
生效时间
, render: (val, item, index) => (
{item.effectStartDate ? formatTime(item.customerName,'Y-MM-dd') : '--'} {item.effectEndDate ? formatTime(item.effectEndDate,'Y-MM-dd') : '--'}
), className: styles.tableCell, },]

 

你可能感兴趣的:(JavaScript,react,小技巧)