ant-design / ant-design/pro-components
🐛[BUG]ValueType为date时,输出了dateTime格式的数据
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🐛 bug 描述
官方文档里面,在可编辑表格里面,第二个示例,与FormItem联动的例子里面可以复现,当ValueType为date时,输出了dateTime格式的数据。并且后面的时分秒格式不是固定的,在某些版本的谷歌浏览器上 输出了 年月日+没有格式化的时分秒 格式。
### 📷 复现步骤
新增一条数据,并查看表格数据;
https://codesandbox.io/s/sz7nw3?file=/App.tsx:1990-1994
### 🏞 期望结果
期望当valueType为date时,输出date格式的数据;
### 💻 复现代码
https://codesandbox.io/s/sz7nw3?file=/App.tsx:1990-1994
### © 版本信息
- ProComponents 版本: [2.6.35]以及更早的版本,包括到2.3.53版本都可以复现。
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start with the editable-table documentation's second example, the linked CodeSandbox, and App.tsx around lines 1990-1994. Reproduce the case with ValueType set to date and inspect the table data after adding a row. Done means the output uses date format rather than dateTime format, including consistent time handling across the reported browser versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100