Browse Source

Pull request #2491: BI-101288 fix: node type不允许自定义

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit 'f2fcc6961521e3a4c1b61c1fdfa04c4f0455ad1d':
  BI-101288 fix: node type不允许自定义
es6
windy 3 years ago
parent
commit
4a5182252a
  1. 5
      src/case/ztree/0.treeview.js

5
src/case/ztree/0.treeview.js

@ -358,14 +358,15 @@ BI.TreeView = BI.inherit(BI.Pane, {
n.title = n.text;
}
var text = BI.createWidget(BI.extend({
type: "bi.text",
cls: "tree-node-text",
css: {
display: "inline"
},
whiteSpace: "nowrap",
root: true
}, n));
}, n, {
type: "bi.text"
}));
var fragment = BI.Widget._renderEngine.createElement("<div>");
fragment.append(text.element[0]);
n.text = fragment.html();

Loading…
Cancel
Save