fix: crud2编辑器提示卡死问题修复、table2 autoFillHeight属性支持滚动 #8763
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
🤖[deprecated] Generated by Copilot at 7b50e75
This pull request enhances the table components in
amis-ui
andamis
by optimizing the height adjustment, data source comparison, and rendering logic. It fixes a bug that caused unnecessary re-rendering ofTable2
and removes redundant code.🤖[deprecated] Generated by Copilot at 7b50e75
Why
How
🤖[deprecated] Generated by Copilot at 7b50e75
timer
property and the delayed execution of theupdateAutoFillHeight
method in theTable
class (link, link)updateAutoFillHeight
method more frequently and conditionally based on theautoFillHeight
prop and thedataSource
state in theTable
class (link, link)style
attribute and set theoverflow
style of thetableContent
element in theupdateAutoFillHeight
method in theTable
class, to adjust the table height and enable the scrollbars (link, link)isEqual
function from thelodash
library to compare the data sources for the table store in theCRUD2
component (link, link)join
method to convert the arrays of keys to strings in the reaction functions for thecurrentSelectedRowKeys
andcurrentExpandedKeys
observables in theTable2
component, to avoid unnecessary reactions (link, link)