-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
BasicForm 自定义 autoAdvancedLine 无效 #1051
Comments
请查阅文档或form源代码理解autoAdvancedLine的配置意义。它不是设置schemas数量,而是schemas所占行数。你配置的是 |
是我没说清楚,我想说的是收起状态下可见schemas 数量,比如我想正常可见多少个schemas,其余的折叠。 |
文档说的意思不是指折叠超过指定行数之后的schemas吗? |
如果你每行有3个,想要折叠后面的21个只显示前面的9个,autoAdvancedLine需要设置为3(9/3=3),默认显示3行(9个) |
正是如此,我每行1个,无任autoAdvancedLine设置多少,均显示一行,所以我才来反馈啊。 |
也就是说如此设置最终也只显示3个(一行) |
|
autoAdvancedLine 值小于7显示效果均如图一,大于6则全部显示。 |
@waney 疏忽了,最后的显示还有showAdvancedButton属性控制, 看来要达到里这个目的只能取改 |
BASIC_COL_LEN 指的是一行的COL数量。这个常量就是固定的24,参考https://2x.antdv.com/components/grid-cn |
这里不涉及前端col排列,只需要关注折叠情况下显示多少个Field就可以了啊。 |
autoAdvancedLine 超过多少行默认折叠状态(不影响折叠行数) |
版本 2.7.0
The text was updated successfully, but these errors were encountered: