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

🐛[BUG] EditableProTable 组件 配置columns,valuType为date;配置format为'DD/MM/YYYY';在赋值的时候 无法解析 format 格式的时间字符串 #8863

Open
Yves-Zhang opened this issue Nov 14, 2024 · 0 comments

Comments

@Yves-Zhang
Copy link

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

EditableProTable 组件 配置columns,valuType为date;配置format为'DD/MM/YYYY';在赋值的时候 无法解析 format 格式的时间字符串

📷 复现步骤

🏞 期望结果

💻 复现代码

  <EditableProTable
    columns={[
      {
        dataIndex: 'id',
        title: 'ID',
      },
      {
        dataIndex: 'date',
        title: 'Date',
        valueType: 'date',
        fieldProps: {
          format: 'DD/MM/YYYY'
        },
      },
    ]}
    value={[
      {
        id: 1,
        date: '23/3/2024',
      }
    ]}
  />
</>

© 版本信息

  • ProComponents 版本: "@ant-design/pro-components": "^2.7.9"
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

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