mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-17 17:40:31 +08:00
docs(module): add comment
This commit is contained in:
parent
1767423c6c
commit
3400d5c783
@ -43,6 +43,12 @@ export function createModule(options: CreateModuleOptions): RuntimeModule {
|
||||
exampleProperties: options.metadata.exampleProperties || {},
|
||||
},
|
||||
spec: {
|
||||
// `json-schema-editor` has a readonly root object by default,
|
||||
// it provides two schema formats,array({type:'array'}) and object({type:'object'}).
|
||||
// In sunmao, we only use the object schema, so we need to specify a default value here
|
||||
// and silently fail when root selects array.
|
||||
// This is a bit obscure, so should remove the array type of root from the json-schema-editor later
|
||||
// TODO remove the array type of root from the json-schema-editor
|
||||
properties: { type: 'object' },
|
||||
events: [],
|
||||
stateMap: {},
|
||||
|
Loading…
Reference in New Issue
Block a user