feat:状态控制动作支持动态标识&补充combo行内联动demo Close #6972 #7033
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
🤖 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 theCmptAction
class, enhances the schema filtering in theSchemaRenderer
class, and modifies the parameter names in theStatusStore
class. The overall purpose is to increase the clarity, accuracy, and functionality of the amis framework.🤖 Generated by Copilot at 0531321
Why
How
🤖 Generated by Copilot at 0531321
filter
function from the./utils/tpl
module in theSchemaRenderer
class and theCmptAction
class (link, link, link, link, link)复制数值
in the documentation filedocs/zh-CN/components/form/combo.md
to make them more clear and accurate (link)复制数值
in the documentation filedocs/zh-CN/components/form/combo.md
to show how to use theIF
expression and thesetValue
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)显示与隐藏
in the documentation filedocs/zh-CN/concepts/event-action.md
to make it more general and consistent with the following section控制状态
(link)componentId
properties of the buttons and actions in the code example of the section显示与隐藏
in the documentation filedocs/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)显示与隐藏
in the documentation filedocs/zh-CN/concepts/event-action.md
to show how to use thevisibility
action and theindex
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)控制状态
in the documentation filedocs/zh-CN/concepts/event-action.md
to show how to use thestatic
andnonstatic
actions to make the form component static or nonstatic (link)控制状态
in the documentation filedocs/zh-CN/concepts/event-action.md
to show how thestatic
andnonstatic
actions affect the appearance and behavior of the input-text component (link)componentId
properties of the buttons and actions in the code example of the section控制状态
in the documentation filedocs/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)componentId
property in the section控制状态
in the documentation filedocs/zh-CN/concepts/event-action.md
to make it more general and consistent with the title of the section (link)setVisible
,setDisable
andsetStatic
methods in theStatusStore
class in the filepackages/amis-core/src/store/status.ts
to use thekey
name instead of theid
name (link)