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组件设置Column属性hidden,数据提交问题 #48622

Closed
passioning opened this issue Apr 25, 2024 · 3 comments
Closed

Table组件设置Column属性hidden,数据提交问题 #48622

passioning opened this issue Apr 25, 2024 · 3 comments

Comments

@passioning
Copy link

What problem does this feature solve?

表格内column使用render渲染Input组件,不同列之间有数据联动,提交的时候,隐藏列数据不会被提交

What does the proposed API look like?

虽然隐藏,但是支持数据联动

@zombieJ
Copy link
Member

zombieJ commented Apr 25, 2024

可以考虑用 css 隐藏,hidden 本身就是不渲染 column 的哈。

@zombieJ zombieJ closed this as completed Apr 25, 2024
@passioning
Copy link
Author

Snipaste_2024-04-25_14-24-24

如上图,单行文本3设置了隐藏属性,但是数据来源是通过查询单号文本1的值,但是提交的时候没有这个column的数据

@passioning
Copy link
Author

通过components设置header和body的Cell的方式,将td的display设置为none,数据可以获取,但是表格整体布局就会乱掉,如下图:
Snipaste_2024-04-25_14-27-11
单行文本3已经隐藏,但表格布局混乱

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

2 participants