pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

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

Open boringplay opened this issue 7 months ago • 1 comments
trafficstars

🔩 所属模块或组件

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

🚑 其他信息

boringplay avatar Mar 23 '25 15:03 boringplay