Browse Source

BI-101288 fix: node type不允许自定义

es6
windy 3 years ago
parent
commit
f2fcc69615
  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