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

[Bug] Vue-VTable setColWidth事件失效 #2058

Open
15862336324 opened this issue Jul 8, 2024 · 4 comments
Open

[Bug] Vue-VTable setColWidth事件失效 #2058

15862336324 opened this issue Jul 8, 2024 · 4 comments

Comments

@15862336324
Copy link

VTable 版本 1.5.0

问题1:ListTable配置heightMode: 'autoHeight',当使用setColWidth事件将列设置为一个较小的宽度,单元格内容超出列宽自动换,此时不会根据内容自动计算行高;
问题2:当出现问题1的情况,使用setColWidth再次设置该列宽时,setColWidth事件失效了

@15862336324
Copy link
Author

业务需求:右击单元格隐藏列,我使用setColWidth(col,0)来实现,但是没法还原列宽了。请问还有什么别的办法可以实现隐藏列和还原显示列?

@fangsmile
Copy link
Contributor

最好不同问题提不同issue中 隐藏列:https://visactor.io/vtable/option/ListTable-columns-text#hide;

另外一个问题 给下复现链接

@15862336324
Copy link
Author

最好不同问题提不同issue中 隐藏列:https://visactor.io/vtable/option/ListTable-columns-text#hide;

另外一个问题 给下复现链接

columns的hide=true,根本不起作用,不知道你们有没有测试过,而且如果用updateColumns来修改hide的话会自动重绘,如果setColWidth(col,0)后能重新还原的话就是理想的效果了

@fangsmile
Copy link
Contributor

image
官网上试试吧

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

2 participants