Skip to content

🙏 s2-react adaptive 为 true 时无须设置宽高 #1122

@pddpd

Description

@pddpd

🖋 Description

设置了 width 和 height 之后,s2-react adaptive 在数据更新时无法及时自适应(@antv/s2-react @1.9.0)。表现为,表格初始化时,是 adaptive 的,但是数据更新后,会优先使用 width 作为表格宽度,需要操作一下表格才会 adaptive。理论上,设置了 adaptive: true 就不再需要设置宽高了吧。

总结下:
🐛 adaptive: true 时,手动设置的宽高应该无效
🙏 adaptive: true 时,宽高非必选

🏞 What problem does this feature solve

Feb-22-2022 17-35-12

🧐 Suggest the API

name type default description
- - - -

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions