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

👑 [需求] ProTable/ProForm columns 可以区分 table 和 form 吗? #9061

Open
boringplay opened this issue Mar 23, 2025 · 0 comments
Open

Comments

@boringplay
Copy link

🔩 所属模块或组件

ProTable/ProForm/BetaSchemaForm

🥰 需求描述

同一个 columns 用于 ProTable 和 ProForm,width 可以区分 Table 和 Form 吗?

写了一个 width 在 Table 下用于 cell width;但是在 Form 下也用来设置 input width 了,导致 input 样式不对。

Table 和 Form 的 width 可以区分吗?

⛰ 功能需求适用场景

🧐 解决方案

增加 tableWidth/formWidth,或者 width 支持函数 (type: 'form' | 'table') => number | string

🚑 其他信息

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

1 participant