1 回答

TA貢獻(xiàn)1911條經(jīng)驗 獲得超7個贊
嘗試這個:
columns={[{ title: 'ID', field: 'id' },
{ title: '', field: 'img', render: item => <img src={item.img} alt="" border="3" height="100" width="100" />},
{ title: 'Title', field: 'title' },
{ title: 'Price', field: 'price' },
{ title: 'Quantity', field: 'quantity' },
{ title: 'Subtotal', field: 'subtotal', render: (item) => item.price*item.quantity},
{ title: 'Description', field: 'description', hidden: true}, ]}
data={rowData.items}
添加回答
舉報