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

Table 's td > div use text-overflow:ellipasis,fixed columns overflow-hiden invalid #18048

Closed
1 task
ChipmunkJerry opened this issue Aug 2, 2019 · 2 comments
Closed
1 task
Assignees

Comments

@ChipmunkJerry
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://ant.design/components/table-cn/#components-table-demo-fixed-columns

Steps to reproduce

render:(text)=>(

{text}
)

table{
table-layout:fixed;
}
.text-wrap{
word-break: keep-all;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

What is expected?

所有td中div不换行,溢出省略

What is actually happening?

fixed列 溢出隐藏无效

Environment Info
antd 4.0.0-alpha.0
React 16
System win10
Browser chrome49

这个页面的table表头也是动态生成,列宽由数据决定,fixed列 宽度不能设置固定值
不希望用 width:固定px 解决

@ChipmunkJerry
Copy link
Author

微信截图_20190802161143

@afc163
Copy link
Member

afc163 commented Aug 2, 2019

#17097 (comment)

trace #17284

@afc163 afc163 closed this as completed Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants