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的默认值与文档描述不符 #3381

Closed
prprprPro opened this issue Dec 23, 2024 · 2 comments
Closed

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

prprprPro opened this issue Dec 23, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists

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
Copy link
Collaborator

anlyyao commented Dec 23, 2024

Duplicate of #3880

@github-actions github-actions bot added the duplicate This issue or pull request already exists label Dec 23, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants