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

[Descriptions] 自适应宽度不合理 #4259

Open
Jiachang-Cai opened this issue Jun 5, 2024 · 3 comments
Open

[Descriptions] 自适应宽度不合理 #4259

Jiachang-Cai opened this issue Jun 5, 2024 · 3 comments
Assignees

Comments

@Jiachang-Cai
Copy link

tdesign-vue-next 版本

1.9.5

重现链接

https://codesandbox.io/p/sandbox/tdesign-vue-next-demo-xv67vj?file=%2Fsrc%2Fdemo.vue%3A9%2C1

重现步骤

  1. 根据columns 等分总宽度(每个t-descriptions-item 宽度)
  2. label 不应该参与自适应宽度
  3. content 宽度撑满 总宽度等分后的宽度不管有没有值

期望结果

00c9e7b51c961cde054c3a668479aa7

实际结果

4743945c82b516a952ac8d3be8593e6

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

重写链接打不开允许 随便填的

Copy link
Contributor

github-actions bot commented Jun 5, 2024

👋 @Jiachang-Cai,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@williambao
Copy link

确实有问题。 尤其我在content里有个动态修改内容的功能,一但content内容变动时, 就会乱跳。
理应等分后, 不管内容有无变化,不应该再变动宽度了。

CleanShot 2024-07-07 at 14 22 54

@zhangpaopao0609
Copy link
Collaborator

zhangpaopao0609 commented Oct 16, 2024

确实有问题。 尤其我在content里有个动态修改内容的功能,一但content内容变动时, 就会乱跳。 理应等分后, 不管内容有无变化,不应该再变动宽度了。

@williambao 这里是修改了 table-layout 吗?默认情况下使用 fixed 的话是均分的,这里是不会改变的,如果修改为 auto,那么将按照 与原生 table-layout css 属性完全一致。详情可参考 MDN

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