Tencent / Tencent/tdesign-miniprogram

[t-table] 单元格自定义不生效

Open
#4,433 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

选择框架

tdesign-miniprogram

NPM 包版本

1.14.0

基础库调试库版本(如果出现问题的框架为 tdesign-miniprogram,请提供基础调试库版本)

3.13.0

重现链接

No response

重现步骤
Image

方式1:插槽,未生效,如何获取当前单元格数据进行动态渲染

Image Image

方式2:function类型,只支持返回string类型,能否支持自定义

期望结果

支持单元格自定义,并提供示例代码

实际结果

不生效

补充说明

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.

Research direction

Start with the t-table cell customization APIs described in the issue, including the slot and function approaches, and reproduce both reported paths. Done means dynamic cell data can be accessed for custom rendering, custom cell output is supported beyond strings, and the usage example requested in the issue is available.

Written by the indexing model from the issue text.

Assessment

Domain
frontend, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.