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

日历组件的格式希望可以使用prop指定 #111

Open
mirari opened this issue Jun 30, 2024 · 0 comments
Open

日历组件的格式希望可以使用prop指定 #111

mirari opened this issue Jun 30, 2024 · 0 comments

Comments

@mirari
Copy link

mirari commented Jun 30, 2024

传入格式为YYYY-MM-DD的值时,在组件上操作选择任意日期,modalValue又会被改变成YYYY/MM/DD
看源码中generateDateStr方法其实是已经把输出值固定写死了使用斜杠的,那感觉传入值支持横杠也就失去意义了,因为处理组件时还是得考虑不同格式的情况。

既然组件已经依赖了dayjs,希望可以将format字段作为属性暴露给外部来覆盖

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