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

✨ [Feature]: Table expand multi-column #548

Open
cbqqkcel opened this issue Sep 29, 2023 · 6 comments
Open

✨ [Feature]: Table expand multi-column #548

cbqqkcel opened this issue Sep 29, 2023 · 6 comments
Labels
enhancement New feature or request (功能增强)

Comments

@cbqqkcel
Copy link

What problem does this feature solve

image

1.比如我想点击商品名称展开,而不是箭头(且目前箭头还不能修改样式)
2.能支持多列展开。目前是联动的。点一个其他的箭头也会变

需求是:pdd后台的商品管理页面就是有多列展开的。

What does the proposed API look like

如上

@kagol kagol added the enhancement New feature or request (功能增强) label Oct 1, 2023
@liguohuanb
Copy link

类似于excel的列分组组合,这个很有用,对于列多的表格,方便把列分组显示

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Similar to Excel's column grouping combination, this is very useful. For tables with many columns, it is convenient to group and display columns.

@zzcr
Copy link
Member

zzcr commented Nov 23, 2023

您好,感谢你的意见,我们内部评估下~~

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Hello, thank you for your opinion, we will evaluate it internally~~

@kagol kagol changed the title ✨ [Feature]: 表格 expand 多列 ✨ [Feature]: Table expand multi-column Dec 9, 2023
@gweesin
Copy link
Contributor

gweesin commented Jul 27, 2024

  1. 将 type="expand" 的插槽由默认插槽改成 name="expand" 的插槽
  2. 默认插槽还是实现单元格内容,默认插槽提供触发 expand 的方法,将 click 展开 / 折叠交由应用端判断,如:
<template #default="{ click }">
  <custom-icon @click="click"></custom-icon>
</template>

这样可行,但会造成 BREAKING CHANGE

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


  1. Change the slot with type="expand" from the default slot to the slot with name="expand"
  2. The default slot still implements cell content. The default slot provides a method to trigger expand, and the click expansion/collapse is left to the application side to judge, such as:
<template #default="{ click }">
  <custom-icon @click="click"></custom-icon>
</template>

This works, but will cause BREAKING CHANGE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request (功能增强)
Projects
None yet
Development

No branches or pull requests

6 participants