[BUG] Ant-design-pro protable组件,option列行内容不居中
bug 描述
复现步骤 | Recurrence steps
设置了:align: 'center'之后,title居中了,但是列内容没有居中
{
title: '操作',
key: 'option',
width: 240,
align: 'center',
valueType: 'option',
render: (_, row) => [
<Typography.Link
key="edit"
onClick={() => {
setCurrentRow(row);
setEditOpen(true);
}}
>
编辑字典
</Typography.Link>,
<Typography.Link
key="item"
onClick={() => {
setItemDict(row);
setItemOpen(true);
}}
>
字典项
</Typography.Link>,
<Popconfirm
key="del"
title={确定删除字典「${row.name}」吗?}
okText="删除"
cancelText="取消"
onConfirm={async () => {
const res = await removeDict(row.id);
if (res?.status === 'done') actionRef.current?.reload();
}}
>
<Typography.Link type="danger">删除字典</Typography.Link>
,
],
},
期望结果 | Expected results
行内容和列内容应是一致的。
复现代码 | Recurrence code
© 版本信息
- Ant Design Pro 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS] github 最新版本6.0.3
其他信息
Source: ant-design/ant-design-pro