{
title: '任务名称',
dataIndex: 'title',
ellipsis: true,
align: 'center'
customCell: column => {
return {
style: {
'min-width': "100px",
"white-space": "nowrap",
overflow: "hidden",
display: "inline-block",
"text-overflow": "ellipsis"
}
};
}
},
{
title: "考勤机名称",
dataIndex: "modeName",
align: "left",
customHeaderCell: column => {
return {
style: {
'min-width': "100px",
"white-space": "nowrap",
overflow: "hidden",
display: "inline-block",
"text-overflow": "ellipsis"
}
};
}
},
AntDesign Vue table设置最小宽度(单元格属性or头部)
于 2021-12-15 10:24:17 首次发布