提交 c53e3a4d 编写于 作者: 蔡祥熠

Merge branch 'fix/Process.table_bordr' into 'wrdp'

Merge of fix/Process.table_bordr 修复单元格的边框样式不生效的问题 to wrdp

See merge request o2oa/o2oa!6143
......@@ -158,6 +158,7 @@ MWF.xApplication.process.Xform.Table$Td = MWF.APPTable$Td = new Class({
}.bind(this));
Object.each(this.json.styles, function(value, key){
if ((value.indexOf("x_processplatform_assemble_surface")!==-1 || value.indexOf("x_portal_assemble_surface")!==-1)){
var host1 = MWF.Actions.getHost("x_processplatform_assemble_surface");
......@@ -177,6 +178,13 @@ MWF.xApplication.process.Xform.Table$Td = MWF.APPTable$Td = new Class({
this.node.setStyle(key, value);
}.bind(this));
//table的 _loadBorderStyle 会忽略当前单元格的边框
Object.each(this.json.recoveryStyles || {}, function(value, key){
if( key.indexOf("border") === 0 ){
this.node.setStyle(key, value);
}
}.bind(this));
if (this.json.cellType=="content"){
this.form.addEvent("postLoad", function(){
var inputs = this.node.getElements("input");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册