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 Request] Table width adaptation #12773

Closed
13662150517 opened this issue Sep 15, 2018 · 14 comments
Closed

[Feature Request] Table width adaptation #12773

13662150517 opened this issue Sep 15, 2018 · 14 comments

Comments

@13662150517
Copy link

Existing Component

Component Name

Table

Description

表格单元格内容太长,可以不换行,宽度自适应内容

@element-bot
Copy link
Member

Translation of this issue:

Existing Component
yes

Component Name
Table

Description
Tabular cell content is too long, it can not line wrap, width adaptive content.

@ziyoung
Copy link
Contributor

ziyoung commented Sep 20, 2018

我听得是一头雾水。用个例子展示你的问题吧。

@13662150517
Copy link
Author

表格一个单元格内容太长,如果内容不想换行,目前会显示 '...' 来表示超出部分,然后鼠标放到单元格上才显示全部内容,例如https://jsfiddle.net/13662150517/bsokxp47/9/ 链接里的地址那一列,我的意思是不显示 '...' 不换行,该列宽度根据内容加宽,当然也需要设置最小的宽度,内容超出最小宽度该列根据内容进行加宽

@ziyoung
Copy link
Contributor

ziyoung commented Sep 21, 2018

你的意思是:如果某一列的内容比较多,我需要把这一列宽度(这里的宽度可能是已经设置过的,也可能是剩余的宽度)自动增加?

@13662150517
Copy link
Author

是的

@shuaninfo
Copy link

+1

@tomieric
Copy link
Contributor

try like this https://kuaizi-co.github.io/kz-table/

@qiushuaichang
Copy link

+1 ,I also want to get the style like bootstrap table, which Adaptive without width。
我也想得到像bootstrap 表格一样的样式,就是不给列宽的情况下,表格自适应。
如果某一列的内容比较多,我需要把这一列宽度自动增加,或者内容少的那列宽度本来很宽,可以自动减小?

@lela520
Copy link

lela520 commented Dec 25, 2018

+1待解决

@JiYJCoder
Copy link

原生table自带的功能,写成组件倒是没有了。建议不要使用colgroup来控制每一列了

@xiaodingmao
Copy link

啥时候可以单元格宽度自适应内容呀

@ziyoung
Copy link
Contributor

ziyoung commented May 7, 2019

可以先阅读一下这篇文章:https://zhuanlan.zhihu.com/p/33280304


这个功能大家呼声还是很强的。应该提供这种功能。当然涉及到的改动应该会很多。😂

@longlonggi
Copy link

在移动端表格横向布局的时候,超出内容显示成toptip,方向和位置都不对,请问有什么好的方法解决吗,或者可以让列宽根据内容宽度自适应

@stale
Copy link

stale bot commented May 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 10, 2020
@stale stale bot closed this as completed May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants