mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:37:37 +00:00
fix: schema Initializer demos
This commit is contained in:
parent
98076d628d
commit
e140227798
@ -91,9 +91,10 @@ const AddBlockButton = observer((props: any) => {
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<SchemaComponentProvider designable components={{ TableBlockInitializer, Hello, AddBlockButton }}>
|
||||
<SchemaComponentProvider designable>
|
||||
<SchemaInitializerProvider initializers={initializers}>
|
||||
<SchemaComponent
|
||||
components={{ TableBlockInitializer, Hello, AddBlockButton }}
|
||||
schema={{
|
||||
type: 'void',
|
||||
name: 'page',
|
||||
|
@ -5,11 +5,12 @@ import {
|
||||
SchemaComponent,
|
||||
SchemaComponentProvider,
|
||||
SchemaInitializer,
|
||||
SchemaInitializerItemOptions
|
||||
SchemaInitializerItemOptions,
|
||||
SchemaInitializerProvider,
|
||||
useSchemaInitializer
|
||||
} from '@nocobase/client';
|
||||
import { Input } from 'antd';
|
||||
import React from 'react';
|
||||
import { SchemaInitializerProvider, useSchemaInitializer } from '..';
|
||||
|
||||
const useFormItemInitializerFields = () => {
|
||||
return [
|
||||
|
Loading…
Reference in New Issue
Block a user