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 f6d2adf
This pull request improves the data schema management and generation in the editor core and plugins, and fixes some issues and typos in the documentation and UI. It uses the
JSONPipeOut
function, theparent
parameter, and theexpression
property to simplify and enhance the schema logic and output. It also modifies the data schema tag format in theWrapper
component.🤖 Generated by Copilot at f6d2adf
Why
How
🤖 Generated by Copilot at f6d2adf
docs/zh-CN/components/form/index.md
(link, link, link, link)Wrapper
component of the editor core to use a colon instead of brackets inpackages/amis-editor-core/src/component/factory.tsx
(link)EditorManager
class of the editor core to avoid stale scopes inpackages/amis-editor-core/src/manager.ts
(link)node
parameter to thebuildDataSchemas
method of the node plugin in theEditorManager
class of the editor core and thePluginInterface
interface in the editor core to allow plugins to access the parent scope or schema inpackages/amis-editor-core/src/manager.ts
andpackages/amis-editor-core/src/plugin.ts
(link, link, link)buildDataSchemas
method to theBasePlugin
class in the editor core to provide a fallback schema for plugins that do not override this method inpackages/amis-editor-core/src/plugin.ts
(link)CRUDPlugin
class in the editor to create and switch to the current row scope and call thebuildDataSchemas
method of the column child plugin with thenode
parameter inpackages/amis-editor/src/plugin/CRUD.tsx
(link, link, link, link)ComboControlPlugin
class in the editor to handle the case where the current node is a combo column and call thebuildDataSchemas
method of the item child plugin with thenode
parameter inpackages/amis-editor/src/plugin/Form/Combo.tsx
(link, link, link, link)JSONPipeOut
function to process the JSON data of the form node and remove some internal properties before converting it to JSON schema and remove the special handling of thecombo
andinput-table
types in theForm
plugin in the editor inpackages/amis-editor/src/plugin/Form/Form.tsx
(link, link)getTreeAncestors
function from theamis-core
package in theInputTable
plugin in the editor and modify the logic of building the data schemas for the input table rows in theTableControlPlugin
class in the editor to call thebuildDataSchemas
method of the cell child plugin with thenode
parameter inpackages/amis-editor/src/plugin/Form/InputTable.tsx
(link, link, link, link)JSONPipeOut
function to process the JSON data of the page node and remove some internal properties before converting it to JSON schema and remove the logic of creating a separate scope for the page data in thePage
plugin in the editor inpackages/amis-editor/src/plugin/Page.tsx
(link, link)JSONPipeOut
function to process the JSON data of the service node and remove some internal properties before converting it to JSON schema and add an implementation of thebuildDataSchemas
method to theServicePlugin
class in the editor inpackages/amis-editor/src/plugin/Service.tsx
(link, link)TablePlugin
class in the editor to handle the case where the current node is a table column and call thebuildDataSchemas
method of the cell child plugin with thenode
parameter inpackages/amis-editor/src/plugin/Table.tsx
(link, link, link, link)getTreeAncestors
function from theamis-core
package in theVariableList
component in the UI and modify the logic of rendering the variable list items to avoid showing the member operations for nested array members inpackages/amis-ui/src/components/formula/VariableList.tsx
(link, link)