nocobase/docs/tr-TR/api/client/schema-designer/schema-initializer.md
altaytahsin ad4929e48b
Turkish language created for Docs. Belgeler için türkçe dil desteği (#1071)
* Turkish language created for Docs. Belgeler için türkçe dil desteği oluşturuldu.

* Turkish docs fix
2022-12-23 09:42:44 +08:00

825 B

SchemaInitializer

用于各种 schema 的初始化。新增的 schema 可以插入到某个已有 schema 节点的任意位置,包括:

{
  properties: {
    // beforeBegin 在当前节点的前面插入
    node1: {
      properties: {
        // afterBegin 在当前节点的第一个子节点前面插入
        // ...
        // beforeEnd 在当前节点的最后一个子节点后面
      },
    },
    // afterEnd 在当前节点的后面
  },
}

SchemaInitializer 的核心包括 <SchemaInitializer.Button /><SchemaInitializer.Item /> 两个组件。<SchemaInitializer.Button /> 用于创建 Schema 的下拉菜单按钮,下拉菜单的菜单项为 <SchemaInitializer.Item/>

<SchemaInitializerProvider />

<SchemaInitializer.Button />

<SchemaInitializer.Item/>