This commit is contained in:
yumoqing 2024-02-20 15:56:35 +08:00
parent 3d4cd8d0fd
commit 4a5eeb1553
5 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ bricks.DataViewer = class extends bricks.VScrollPanel {
add_row = async function(row, direction){ add_row = async function(row, direction){
var s = obj_fmtstr(row, this.viewer_tmpl); var s = obj_fmtstr(row, this.viewer_tmpl);
var desc = JSON.parse(s); var desc = JSON.parse(s);
var w = await widgetBuild(desc, this); var w = await bricks.widgetBuild(desc, this);
if (! w){ if (! w){
console.log(desc, 'widgetBuild() failed...........'); console.log(desc, 'widgetBuild() failed...........');
return; return;

View File

@ -110,7 +110,7 @@ bricks.HttpText = class {
console.log('login info:', e.target.getValue()); console.log('login info:', e.target.getValue());
return e.target.getValue(); return e.target.getValue();
} }
var w = await widgetBuild({ var w = await bricks.widgetBuild({
"id":"login_form", "id":"login_form",
"widgettype":"urlwidget", "widgettype":"urlwidget",
"options":{ "options":{

View File

@ -84,7 +84,7 @@ bricks.MarkdownViewer = class extends bricks.VBox {
} }
] ]
} }
var w = await widgetBuild(desc); var w = await bricks.widgetBuild(desc);
console.log('createBackButton():error, desc=', desc, 'w=', w); console.log('createBackButton():error, desc=', desc, 'w=', w);
var t = w.children[0]; var t = w.children[0];
console.log('createBackButton():text=',t); console.log('createBackButton():text=',t);

View File

@ -92,7 +92,7 @@ bricks.TabPanel = class extends bricks.Layout {
this.cur_tab_name = name; this.cur_tab_name = name;
return; return;
} }
w = await widgetBuild(items[i].content); w = await bricks.widgetBuild(items[i].content);
if (! w){ if (! w){
console.log('TabPanel():create content error', items[i].content); console.log('TabPanel():create content error', items[i].content);
return; return;

View File

@ -70,7 +70,7 @@ bricks.Toolbar = class extends bricks.Layout {
css:desc.css css:desc.css
} }
}; };
var w = await widgetBuild(options); var w = await bricks.widgetBuild(options);
if (! w){ if (! w){
console.log('Toolbar(): build widget failed', options); console.log('Toolbar(): build widget failed', options);
return return