Skip to content
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

feat: 数据域组件扩充 trackExpression 属性用于显式的设置跟踪上层数据变化 Close: #7152 #7169

Merged
merged 7 commits into from
Jun 16, 2023

Conversation

2betop
Copy link
Collaborator

@2betop 2betop commented Jun 14, 2023

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

trackExpression is the key to the chain
Unleash the power of the data scope
Don't let the props slow down the render
Optimize the store with the template hope

Why

Close: #7152

How

🤖 Generated by Copilot at fc33a00

  • Add trackExpression prop to API objects and schema renderer to enable data chain updates based on upper-level data variables (link, link, link, link)
  • Import and use tokenize function to evaluate trackExpression in store factory component and compare the results between current and previous props (link, link, link)
  • Prevent unnecessary data chain updates by checking trackExpression prop and omitting it from transmission to child components (link, link, link)
  • Add and update documentation for trackExpression and data scope components in docs/zh-CN/concepts/datascope-and-datachain.md (link, link)
  • Fix typos of traceExpression to trackExpression in comments (link, link)

@github-actions github-actions bot added the feat label Jun 14, 2023
@github-actions
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@hsm-lv hsm-lv merged commit 8b48d3b into baidu:master Jun 16, 2023
5 checks passed
@2betop 2betop deleted the feat-trackExpression branch July 4, 2023 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

form-select无法取到数据链当中的data
3 participants