Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[新功能需求] 希望 Tab 的 title 可以是插槽 #488

Open
Hibiscus2077 opened this issue Aug 3, 2024 · 0 comments
Open

[新功能需求] 希望 Tab 的 title 可以是插槽 #488

Hibiscus2077 opened this issue Aug 3, 2024 · 0 comments
Labels
feature: need confirm 待确认的新特性

Comments

@Hibiscus2077
Copy link

Hibiscus2077 commented Aug 3, 2024

这个功能解决了什么问题?

自定义tab title 内容区域, 用于标题换行、自定义样式 添加 badge 等功能

你期望的 API 是什么样子的?

<wd-tabs v-model="activeTab" @change="onTabChange">
        <block v-for="item in options" :key="item">
          <wd-tab >
              <template #title>
                 >>>>>  custom title <<<<<
                 >>>>>  custom title <<<<<
              </template>
          </wd-tab>
        </block>
      </wd-tabs>
@Hibiscus2077 Hibiscus2077 added the feature: need confirm 待确认的新特性 label Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: need confirm 待确认的新特性
Projects
None yet
Development

No branches or pull requests

1 participant