Procházet zdrojové kódy

修复表单设计Tab页展现不正确的问题

huqi před 5 roky
rodič
revize
7228611828

+ 1 - 0
o2web/source/o2_core/o2/framework.js

@@ -1,3 +1,4 @@
+layout.app = true;
 layout.addReady(function(){
     // MWF.require("MWF.xScript.Environment", null, false);
     // MWF.require("MWF.xScript.PageEnvironment", null, false);

+ 3 - 1
o2web/source/x_component_process_FormDesigner/Module/Tab$Content.js

@@ -103,8 +103,10 @@ MWF.xApplication.process.FormDesigner.Module.Tab$Content = MWF.FCTab$Content = n
 		}.bind(this));
 	},
 	_recoveryModuleData: function(){
-		this.node.set("style", this.recoveryWidgetstyle);
+		if (this.recoveryWidgetstyle) this.node.set("style", this.recoveryWidgetstyle);
 		this.recoveryWidgetstyle = null;
+		if (this.json.recoveryStyles) this.json.styles = this.json.recoveryStyles;
+		this.json.recoveryStyles = null;
 	},
 	setCustomStyles: function(){
 		this._recoveryModuleData();

+ 3 - 1
o2web/source/x_component_process_FormDesigner/Module/Tab$Page.js

@@ -254,8 +254,10 @@ MWF.xApplication.process.FormDesigner.Module.Tab$Page = MWF.FCTab$Page = new Cla
 		}.bind(this));
 	},
 	_recoveryModuleData: function(){
-		this.node.set("style", this.recoveryWidgetstyle);
+		if (this.recoveryWidgetstyle) this.node.set("style", this.recoveryWidgetstyle);
 		this.recoveryWidgetstyle = null;
+		if (this.json.recoveryStyles) this.json.styles = this.json.recoveryStyles;
+		this.json.recoveryStyles = null;
 	},
 	setCustomStyles: function(){
 		this._recoveryModuleData();

+ 3 - 1
o2web/source/x_component_process_FormDesigner/Module/Tab.js

@@ -398,8 +398,10 @@ MWF.xApplication.process.FormDesigner.Module.Tab = MWF.FCTab = new Class({
 		}.bind(this));
 	},
 	_recoveryModuleData: function(){
-		this.node.set("style", this.recoveryWidgetstyle);
+		if (this.recoveryWidgetstyle) this.node.set("style", this.recoveryWidgetstyle);
 		this.recoveryWidgetstyle = null;
+		if (this.json.recoveryStyles) this.json.styles = this.json.recoveryStyles;
+		this.json.recoveryStyles = null;
 	},
 	setCustomStyles: function(){
 		this._recoveryModuleData();