This commit is contained in:
yumoqing 2024-03-14 21:49:48 +08:00
parent 5b0d056f05
commit ca0f6320af

View File

@ -86,7 +86,7 @@ bricks.DynamicAccordion = class extends bricks.VScrollPanel {
return;
}
var w;
var tb;
var tb = null;
var info = new bricks.AccordionInfo({});
info.data = record;
item.add_widget(info);
@ -101,8 +101,10 @@ bricks.DynamicAccordion = class extends bricks.VScrollPanel {
}
}
w = await bricks.widgetBuild(this.record_view, info, record);
w.add_widget(tb, 0);
if (w){
if (tb){
w.add_widget(tb, 0);
}
info.add_widget(w);
} else {
bricks.debug('bricks.widgetBuild(), tmpl=', this.record_view, 'record=', record);