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){
var s = obj_fmtstr(row, this.viewer_tmpl);
var desc = JSON.parse(s);
var w = await widgetBuild(desc, this);
var w = await bricks.widgetBuild(desc, this);
if (! w){
console.log(desc, 'widgetBuild() failed...........');
return;

View File

@ -110,7 +110,7 @@ bricks.HttpText = class {
console.log('login info:', e.target.getValue());
return e.target.getValue();
}
var w = await widgetBuild({
var w = await bricks.widgetBuild({
"id":"login_form",
"widgettype":"urlwidget",
"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);
var t = w.children[0];
console.log('createBackButton():text=',t);

View File

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

View File

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