Tencent / Tencent/tdesign-miniprogram

[Calendar] format过于消耗资源

Open
#3,544 3 comments 0 reactions 1 assignee View on GitHub

@anlyyao is already working on this.

Since May 30, 2025.

💪🏻 enhancement help wanted
Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

tdesign-miniprogram 版本

1.8.7

重现链接

No response

重现步骤

每次点击日历组件的日期都会调用format,当日期过大的时候会导致资源浪费,我希望可以只格式化当前可见月份的内容,请问有什么办法可以限制吗?

https://github.com/user-attachments/assets/b6e810d3-5b2f-4938-b92d-2557b11aec79

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.