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

[calendar] value和defaultValue的默认值与文档描述不符 #3380

Closed
prprprPro opened this issue Dec 23, 2024 · 2 comments · Fixed by #3385
Closed

[calendar] value和defaultValue的默认值与文档描述不符 #3380

prprprPro opened this issue Dec 23, 2024 · 2 comments · Fixed by #3385
Labels
documentation Improvements or additions to documentation

Comments

@prprprPro
Copy link

tdesign-miniprogram 版本

1.8.3

重现链接

重现步骤

文档中,value和defaultValue的默认值的描述为“不传则默认今天”,但实际代码(calendar.js line 118)中为:
const now = minDate || new Date(today.getFullYear(), today.getMonth(), today.getDate()).getTime();
因此应修改表述为不传则默认为minDate的值,当minDate未设定时默认为今天

期望结果

修改表述为不传则默认为minDate的值,当minDate未设定时默认为今天

实际结果

No response

基础库版本

No response

补充说明

No response

Copy link
Contributor

👋 @prprprPro,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao anlyyao added the enhancement New feature or request label Dec 23, 2024
@anlyyao
Copy link
Collaborator

anlyyao commented Dec 23, 2024

@prprprPro 已处理。value 属性描述更新为:当前选择的日期,不传则选用 minDate 属性值或今天,优先级:minDate > today。

@anlyyao anlyyao added documentation Improvements or additions to documentation and removed enhancement New feature or request labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants