This commit is contained in:
yumoqing 2025-08-01 11:55:01 +08:00
parent 600cc0b91c
commit c31db30118
2 changed files with 6 additions and 0 deletions

View File

@ -301,6 +301,11 @@ bricks.Tree = class extends bricks.VScrollPanel {
} else if (opts.selected_data){
d = this.selected_node.user_data
}
d.meta_data = {
referer: this.id,
title: opts.label,
icon: opts.icon
}
this.dispatch(opts.name, d);
break;
}

View File

@ -35,6 +35,7 @@ bricks.JsWidget = class {
this._container = false;
this.parent = null;
this.sizable_elements = [];
this.set_id(bricks.uuid());
if (options.css){
this.set_css(options.css);
}