Sfoglia il codice sorgente

修复页面设置树组件样式无效的问题

unknown 5 anni fa
parent
commit
04d503aab2

+ 2 - 1
o2web/source/x_component_process_FormDesigner/Module/Tree.js

@@ -83,9 +83,10 @@ MWF.xApplication.process.FormDesigner.Module.Tree = MWF.FCTree = new Class({
 		if (!this.tree){
 			this.node.empty();
 			this.tree = new MWF.widget.Tree(this.node, {"style":"form"});
+			this.tree.css = Object.clone( this.tree.css );
+			this._setTreeStyles();
 			this._setTreeWidgetStyles();
 			this.tree.load(treeData);
-			this._setTreeStyles();
 		}else{
 			this.tree.reLoad(treeData);
 		}