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

[DatePicker2]日期组件outputFormat 参数无效,没有日期返回对应格式的数据,还是返回了日期对象 #4952

Closed
1119879311 opened this issue Oct 11, 2024 · 2 comments
Labels
🏗 Need Reproduce A demo(codepen/codesandbox) is needed Stale not active for a lone time

Comments

@1119879311
Copy link

Component

DatePicker2

Reproduction link

https://fusion.design/pc/component/date-picker-2?themeid=2#selectRangeDates-container

Steps to reproduce

根据官方文档示例,并没有示例,使用outputFormat 属性,并没有生效,还是返回了日期对象dayjs
这里吐槽一下,很多属性api 没有使用示例,太坑了,建议以修复bug 和文档维护为主吧

@eternalsky
Copy link
Contributor

你给的这个复现链接里并没有使用 outputFormat,无法确认你的问题。我自己试了一下,是会返回指定的 outputFormat 的。
截屏2024-10-12 17 48 50
不可能每个 api 都提供一个示例,有些示例是结合了多个 api 的,有的 api 是一眼就能懂的,也不一定会单独提供。

@eternalsky eternalsky added the 🏗 Need Reproduce A demo(codepen/codesandbox) is needed label Oct 12, 2024
Copy link

你好,该 issue 已 30 天没有活动,因此被标记为 stale,如果之后的 7 天仍然没有活动,该 issue 将被自动关闭

@github-actions github-actions bot added the Stale not active for a lone time label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏗 Need Reproduce A demo(codepen/codesandbox) is needed Stale not active for a lone time
Projects
None yet
Development

No branches or pull requests

2 participants