统计分班名称过长

issues25489
杨树林 5 years ago
parent c39d5d6ecd
commit ce97442fbc

@ -132,3 +132,17 @@
font-size: 16px;
margin-left:15px;
}
.maxnamewidth200 {
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: default;
}
.maxnamewidth180 {
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: default;
}

@ -201,15 +201,17 @@ class Statistics extends Component{
{
title: '姓名',
dataIndex:'user_name',
className: 'maxnamewidth180',
render: (text, record) => (
<span>{record.user_name}</span>
<a title={record.user_name} className="maxnamewidth180">{record.user_name}</a>
)
},
{
title: '分班',
dataIndex: 'course_group',
className: 'maxnamewidth200',
render: (text, record) => (
<span >{record.course_group}</span>
<a title={record.course_group} className="maxnamewidth200">{record.course_group}</a>
)
},
{

Loading…
Cancel
Save