dev_forum
hjm 5 years ago
parent 877cb5a2ea
commit 696be1edbf

@ -39,15 +39,17 @@ function buildColumns(that) {
render: (content, item, index) => { render: (content, item, index) => {
return <a href="javascript:;">{(that.state.page - 1) * 20 + index + 1} </a> return <a href="javascript:;">{(that.state.page - 1) * 20 + index + 1} </a>
} }
},{ }
title: '用户ID', // ,{
width: 120, // title: '用户ID',
dataIndex: 'login', // width: 120,
key: 'login', // dataIndex: 'login',
render: (login, record) => { // key: 'login',
return <span className="overflowHidden1" style={{ maxWidth: '110px'}} title={`${login.length > 8 ? login : ''}`}>{login}</span> // render: (login, record) => {
} // return <span className="overflowHidden1" style={{ maxWidth: '110px'}} title={`${login.length > 8 ? login : ''}`}>{login}</span>
}, { // }
// }
, {
title: '姓名', title: '姓名',
dataIndex: 'name', dataIndex: 'name',
width: 120, width: 120,

Loading…
Cancel
Save