Tencent / Tencent/tdesign-miniprogram

[calendar] 调用接口对日历的某几天进行文案定义

Open
#2,319 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

这个功能解决了什么问题

我觉得这个日历不错,但是比如我想对某几天的日历做标记,比如:8月25日做个上标:纪念日,8月28日做个上标:重要
但是我看例子我没有办法完成这个过程,因为例子中只有在整个初始化过程中就把这些内容通过format定好。我没有办法类似于通过某个按钮之类的,把format调用。

你建议的方案是什么

建议能够提供函数方法之类的,我可以按钮事件调用这个方法,把日历的某几个日期做自定义文案的suffix和prefix

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.

Research direction

Start by reviewing the calendar component's existing initialization-time format behavior and the examples referenced in the issue. Define how a button-triggered update would target selected dates and their prefix or suffix text, then verify that the resulting labels update correctly without reinitializing the calendar.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.