feat: 数据域组件扩充 trackExpression 属性用于显式的设置跟踪上层数据变化 Close: #7152 #7169
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
🤖 Generated by Copilot at fc33a00
This pull request adds a new feature of
trackExpression
to the store factory component, which allows it to update its data based on a template expression. It also improves the documentation of the data chain concept and fixes some typos in the code comments.🤖 Generated by Copilot at fc33a00
Why
Close: #7152
How
🤖 Generated by Copilot at fc33a00
trackExpression
prop to API objects and schema renderer to enable data chain updates based on upper-level data variables (link, link, link, link)tokenize
function to evaluatetrackExpression
in store factory component and compare the results between current and previous props (link, link, link)trackExpression
prop and omitting it from transmission to child components (link, link, link)trackExpression
and data scope components indocs/zh-CN/concepts/datascope-and-datachain.md
(link, link)traceExpression
totrackExpression
in comments (link, link)