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
DatePicker能否提供扩展支持非正常的日期值 #23689
Labels
Comments
format就可以了吧 |
format一个是吧一个日期对象转成字符串,这种相当于是一个特殊值"NA"这种 他压根就不是一个日期值 |
format 只处理显示值,持有的value仍然是日期对象。 |
所以咯,实际情况这个时候日期控件的值已经不是一个日期了;而是一个特殊值 表示不适用或者未知的这种场景, |
|
supported in #17222 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
某些情况下这个日期接受的值为正常日期或者保密(NA)之类的,期望可以提供这种扩展 比如日期:2010-02-02 或者 NA NA表示这个日期是保密的,类似这种的
What does the proposed API look like?
<DatePicker externalValues=['NA'] />;
The text was updated successfully, but these errors were encountered: