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; n.title = n.text;
} }
var text = BI.createWidget(BI.extend({ var text = BI.createWidget(BI.extend({
type: "bi.text",
cls: "tree-node-text", cls: "tree-node-text",
css: { css: {
display: "inline" display: "inline"
}, },
whiteSpace: "nowrap", whiteSpace: "nowrap",
root: true root: true
}, n)); }, n, {
type: "bi.text"
}));
var fragment = BI.Widget._renderEngine.createElement("<div>"); var fragment = BI.Widget._renderEngine.createElement("<div>");
fragment.append(text.element[0]); fragment.append(text.element[0]);
n.text = fragment.html(); n.text = fragment.html();

Loading…
Cancel
Save