DesignableBar
This commit is contained in:
parent
428beabd5a
commit
1007324b09
@ -208,8 +208,13 @@ export function useDesignable(path?: any) {
|
|||||||
}
|
}
|
||||||
// console.log('useDesignable', { schema, schemaPath, currentSchema });
|
// console.log('useDesignable', { schema, schemaPath, currentSchema });
|
||||||
const options = useContext(SchemaOptionsContext);
|
const options = useContext(SchemaOptionsContext);
|
||||||
const DesignableBar =
|
let DesignableBar = get(options.components, currentSchema['x-designable-bar']);
|
||||||
get(options.components, currentSchema['x-designable-bar']) || (() => null);
|
if (!designable) {
|
||||||
|
DesignableBar = () => null;
|
||||||
|
}
|
||||||
|
if (!DesignableBar) {
|
||||||
|
DesignableBar = () => null;
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
designable,
|
designable,
|
||||||
root: schema,
|
root: schema,
|
||||||
|
Loading…
Reference in New Issue
Block a user