Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProTable列类型选择indexBorder居中无效的问题 #82

Closed
eaglewa opened this issue Aug 3, 2020 · 3 comments
Closed

ProTable列类型选择indexBorder居中无效的问题 #82

eaglewa opened this issue Aug 3, 2020 · 3 comments
Labels
question Further information is requested table

Comments

@eaglewa
Copy link

eaglewa commented Aug 3, 2020

🐛 bug 描述

ProTable列类型选择indexBorder居中无效的问题

📷 复现步骤

{
  title: "序号",
  dataIndex: "index",
  align: "center",
  valueType: "indexBorder",
  width: 30,
},

🏞 实际结果

image

© 版本信息

  • Ant Design Pro 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]
@afc163
Copy link
Member

afc163 commented Aug 3, 2020

indexOrder ?

@eaglewa
Copy link
Author

eaglewa commented Aug 3, 2020

image
indexOrder是什么意思

@chenshuai2144
Copy link
Contributor

你可以这么实现

{
  title: "序号",
  dataIndex: "index",
  align: "center",
  valueType: "indexBorder",
  width: 30,
  render:(dom)=><div style={{display:"flex",justifyContent:"center"}}>{dom}</div>
},

不过一个 index 列,不应该太宽了

@chenshuai2144 chenshuai2144 added table question Further information is requested labels Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested table
Projects
None yet
Development

No branches or pull requests

3 participants