feat: param schema support readonly

This commit is contained in:
Joel
2025-05-28 16:35:52 +08:00
parent f2a8af0680
commit 9adda90227
4 changed files with 13 additions and 7 deletions

View File

@ -113,9 +113,7 @@ const SchemaModal: FC<Props> = ({
<VisualEditorContextProvider>
<VisualEditor
schema={testSchema}
onChange={(schema: SchemaRoot) => {
console.log('Schema changed:', schema)
}}
readOnly
></VisualEditor>
</VisualEditorContextProvider>
</MittProvider>