This commit is contained in:
yumoqing 2025-07-30 14:09:31 +08:00
parent 0c9f663f1a
commit 67923b9079

View File

@ -158,11 +158,11 @@ bricks.TreeNode = class extends bricks.VBox {
if (this.tree.opts.typeField){ if (this.tree.opts.typeField){
var ntype = this.user_data[this.opts.typeField]; var ntype = this.user_data[this.opts.typeField];
var icons = null; var icons = null;
if (this.tree.node_state_icons){ if (this.tree.node_typeicons){
icons = this.tree.node_state_icons[ntype]; icons = this.tree.node_typeicons[ntype];
var dt = this.tree.node_state_icons.default_type; var dt = this.tree.node_typeicons.default_type;
if (dt){ if (dt){
icon = this.tree.node_state_icons[dt]; icon = this.tree.node_typeicons[dt];
} }
} }
} }
@ -189,7 +189,7 @@ bricks.Tree = class extends bricks.VScrollPanel {
default_type: default_type:
data: data:
dataurl: dataurl:
node_state_icon:{ node_typeicons:{
nodetype:{ nodetype:{
open:url, open:url,
close:url, close:url,