Integrate supported ops into the UI

This commit is contained in:
Ingvar Stepanyan
2021-07-26 13:09:10 +00:00
parent 95ed711729
commit e3ea463db5
6 changed files with 49 additions and 44 deletions

View File

@@ -68,11 +68,13 @@ export class Widget extends Component {
let { label, name } = config;
let id = `config-${name}`;
if (config.type === 'window' || config.type === 'section') {
let children = Object.values(config.children);
if (!children.length) return;
return h(
'fieldset',
{ id },
h('legend', {}, label),
Object.values(config.children).map(config =>
children.map(config =>
h(Widget, { key: config.name, config, setValue })
)
);