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:状态控制动作支持动态标识&补充combo行内联动demo Close #6972 #7033

Merged
merged 2 commits into from
May 30, 2023

Conversation

hsm-lv
Copy link
Collaborator

@hsm-lv hsm-lv commented May 30, 2023

What

🤖 Generated by Copilot at 0531321

This pull request improves the documentation of the combo component and the event-action concept in the docs/zh-CN folder, fixes the component action execution in the CmptAction class, enhances the schema filtering in the SchemaRenderer class, and modifies the parameter names in the StatusStore class. The overall purpose is to increase the clarity, accuracy, and functionality of the amis framework.

🤖 Generated by Copilot at 0531321

We are the masters of the schema
We control the state and the data
We filter the keys with the context
We render the components with effect

Why

How

🤖 Generated by Copilot at 0531321

  • Filter the schema id and name with the data context using the filter function from the ./utils/tpl module in the SchemaRenderer class and the CmptAction class (link, link, link, link, link)
  • Modify the title and description of the section 复制数值 in the documentation file docs/zh-CN/components/form/combo.md to make them more clear and accurate (link)
  • Add a new code example to the section 复制数值 in the documentation file docs/zh-CN/components/form/combo.md to show how to use the IF expression and the setValue action to change the value of the second select component based on the value of the first select component within the row records of the combo component (link)
  • Modify the title of the section 显示与隐藏 in the documentation file docs/zh-CN/concepts/event-action.md to make it more general and consistent with the following section 控制状态 (link)
  • Modify the labels and the componentId properties of the buttons and actions in the code example of the section 显示与隐藏 in the documentation file docs/zh-CN/concepts/event-action.md to make them more descriptive and specific, and to match the id of the form component that is supposed to be shown or hidden (link, link, link, link)
  • Add a new code example to the section 显示与隐藏 in the documentation file docs/zh-CN/concepts/event-action.md to show how to use the visibility action and the index variable to control the visibility of the second select component within the row records of the combo component based on the value of the first select component (link)
  • Add two new buttons and their corresponding actions to the code example of the section 控制状态 in the documentation file docs/zh-CN/concepts/event-action.md to show how to use the static and nonstatic actions to make the form component static or nonstatic (link)
  • Add a new input-text component to the code example of the section 控制状态 in the documentation file docs/zh-CN/concepts/event-action.md to show how the static and nonstatic actions affect the appearance and behavior of the input-text component (link)
  • Modify the labels and the componentId properties of the buttons and actions in the code example of the section 控制状态 in the documentation file docs/zh-CN/concepts/event-action.md to make them more descriptive and specific, and to match the id of the component that is supposed to be enabled or disabled (link, link, link)
  • Modify the description of the componentId property in the section 控制状态 in the documentation file docs/zh-CN/concepts/event-action.md to make it more general and consistent with the title of the section (link)
  • Modify the parameter names of the setVisible, setDisable and setStatic methods in the StatusStore class in the file packages/amis-core/src/store/status.ts to use the key name instead of the id name (link)

@hsm-lv hsm-lv requested a review from 2betop May 30, 2023 05:59
@github-actions github-actions bot added the feat label May 30, 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 changed the title feat:状态控制动作支持动态标识&补充combo行内联动demo feat:状态控制动作支持动态标识&补充combo行内联动demo Close #6972 May 30, 2023
@hsm-lv hsm-lv linked an issue May 30, 2023 that may be closed by this pull request
@hsm-lv hsm-lv merged commit fac5ae4 into baidu:master May 30, 2023
3 checks passed
@hsm-lv hsm-lv deleted the feat-action branch July 17, 2023 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

combo 多行间组件存在事件耦合
3 participants