提交 e0159951 编写于 作者: U unknown

修复单元格的边框样式不生效的问题

上级 c7be93a8
......@@ -27,6 +27,7 @@
},
"homepage": "https://github.com/huqi1980/o2oa_client_web#readme",
"devDependencies": {
"@babel/core": "^7.16.0",
"gulp": "^4.0.0",
"gulp-changed": "^3.2.0",
"gulp-cli": "^2.3.0",
......@@ -37,6 +38,7 @@
"gulp-if": "^2.0.2",
"gulp-rename": "^1.4.0",
"gulp-sftp-up4": "^0.1.8",
"gulp-shell": "^0.8.0",
"gulp-tm-asset-rev": "^0.0.18",
"gulp-tm-uglify": "3.0.1",
"gulp-uglify-es": "^2.0.0",
......@@ -50,7 +52,6 @@
"merge-stream": "^1.0.1",
"minimist": "^1.2.0",
"readline-sync": "^1.4.10",
"tidy-jsdoc-o2": "latest",
"gulp-shell": "^0.8.0"
"tidy-jsdoc-o2": "latest"
}
}
......@@ -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.
先完成此消息的编辑!
想要评论请 注册