This commit is contained in:
yumoqing 2026-05-07 14:46:08 +08:00
parent 269bdac2f6
commit a6bd75dbbd

View File

@ -44,6 +44,10 @@ bricks.Toolbar = class extends bricks.Layout {
}
}
async createTools(){
if (!this.opts.tools){
console.log('error: tools not exists in options');
return;
}
var l = this.opts.tools.length;
for (var i=0;i<l; i++){
await this.createTool(this.opts.tools[i]);