Tencent / Tencent/tdesign-miniprogram

[Tabs] TabPanel Props 中的label 和 icon 可以开放插槽功能吗?

Open
#3,801 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

这个功能解决了什么问题

可以定制 label

你建议的方案是什么

lebel和 icon 开放 slot功能

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 locating the TabPanel implementation and checking how its label and icon are currently rendered. Compare nearby components for existing slot patterns, then verify that both properties can be customized through slots and that the existing tab behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.