Tencent / Tencent/tdesign-miniprogram

[calendar] 想要在dates-item中承载view或者图片

Open
#3,998 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

这个功能解决了什么问题

通过日历视图进行记录展示时,需要在对应日期位置展示更加复杂的自定义的view元素,希望可以支持。

你建议的方案是什么

通过在format返回值添加一个图片src字段可以方便实现图片展示,但是view还没有好的思路

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 tracing the calendar component's dates-item rendering and the format return value described in the issue. Determine how image src and custom view content should be represented, then verify the calendar can render the requested date content without breaking existing formatting.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.