From 67923b90796ea88ca7c39e1260a5b878e77e5dd3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 30 Jul 2025 14:09:31 +0800 Subject: [PATCH] bugfix --- bricks/tree.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bricks/tree.js b/bricks/tree.js index 99a141d..7f8697c 100644 --- a/bricks/tree.js +++ b/bricks/tree.js @@ -158,11 +158,11 @@ bricks.TreeNode = class extends bricks.VBox { if (this.tree.opts.typeField){ var ntype = this.user_data[this.opts.typeField]; var icons = null; - if (this.tree.node_state_icons){ - icons = this.tree.node_state_icons[ntype]; - var dt = this.tree.node_state_icons.default_type; + if (this.tree.node_typeicons){ + icons = this.tree.node_typeicons[ntype]; + var dt = this.tree.node_typeicons.default_type; 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: data: dataurl: - node_state_icon:{ + node_typeicons:{ nodetype:{ open:url, close:url,