mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 22:27:26 +00:00
887 B
887 B
SchemaInitializer
Used for the initialization of various schemas. Newly added schema can be inserted anywhere in an existing schema node, including:
{
properties: {
// beforeBegin - Insert in front of the current node
node1: {
properties: {
// afterBegin - Insert in front of the first child node of the current node
// ...
// beforeEnd - After the last child node of the current node
},
},
// afterEnd - After the current node
},
}
The core of SchemaInitializer includes <SchemaInitializer.Button />
and <SchemaInitializer.Item />
the two components. <SchemaInitializer.Button />
is used to create the dropdown menu button of schema, and the options of the dropdown menu is <SchemaInitializer.Item/>
.