This commit is contained in:
yumoqing 2025-01-09 11:36:30 +08:00
parent 1baf3e564e
commit 8e11f40945
2 changed files with 9 additions and 1 deletions

View File

@ -138,7 +138,7 @@ bricks.DataViewer = class extends bricks.VBox {
} }
if (this.toolbar){ if (this.toolbar){
this.toolbar.tools.forEach(t => { this.toolbar.tools.forEach(t => {
if (! edit_names.incloudes(t.name)){ if (! edit_names.includes(t.name)){
tbdesc.tools.push(t); tbdesc.tools.push(t);
} }
}); });

View File

@ -10,4 +10,12 @@ bricks.Iframe = class extends bricks.Layout {
} }
} }
bricks.NewWindow = class extends bricks.JsWidget {
constructor(opts){
super(opts);
window.open(opts.url);
}
}
bricks.Factory.register('NewWindow', bricks.NewWindow);
bricks.Factory.register('Iframe', bricks.Iframe); bricks.Factory.register('Iframe', bricks.Iframe);