ant design vue table 如何让文字居中
const columns = [{title: '活动标题',dataIndex: 'title',key: 'title',align: 'center'// 设置文本居中的属性},{title: '编辑时间',dataIndex: 'createTime',key: 'createTime',align: 'c
·
const columns = [
{
title: '活动标题',
dataIndex: 'title',
key: 'title',
align: 'center' // 设置文本居中的属性
},
{
title: '编辑时间',
dataIndex: 'createTime',
key: 'createTime',
align: 'center'
},
];
想要让内容居中需要在columns
中设置,希望对你有帮助
更多推荐
已为社区贡献23条内容
所有评论(0)