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

ColumnSetting.vue的bug #3811

Open
fangxux opened this issue May 6, 2024 · 0 comments
Open

ColumnSetting.vue的bug #3811

fangxux opened this issue May 6, 2024 · 0 comments

Comments

@fangxux
Copy link

fangxux commented May 6, 2024

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • [v] 已阅读 文档.
  • [v] 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
  • [v] 已在 Issues 中搜索了相关的关键词
  • [v] 不是 ant design vue 组件库的 Bug

描述 Bug

当表格的定义dataIndex为数组时,表格设置有问题

错误行350
const colIdx = columns.findIndex((o) => o.dataIndex === opt.value);
需要改成
const colIdx = columns.findIndex((o) => o.dataIndex === opt.value || o.title === opt.value);

错误行543
: col.customTitle === 'string'
需要改成
: type col.customTitle === 'string'
错误行548
: col.title === 'string'
需要改成
: type col.title === 'string'

复现 Bug

请描述在演示页面中复现 Bug 的详细步骤,以确保我们可以理解并定位问题。部分 Bug 如果未在 Demo 中涉及,请务必提供关键代码

系统信息

  • 操作系统: macOs sonoma 14.4.1
  • Node 版本: v18.16.0
  • pnpm 版本: 9.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant