提交 49d81483 编写于 作者: NoSubject's avatar NoSubject

数据网格中多行文本的显示问题

上级 8b327302
......@@ -720,7 +720,13 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class({
if( module.json.type == "ImageClipper" ){
this._createImage( cell, module, data.text );
}else{
cell.set("text", data.text.join(", "));
var text = this._getValueText(idx, data.text.join(", "));
if( module.json.type == "Textarea"){
cell.set("html", text);
}else{
cell.set("text", text);
}
//cell.set("text", data.text.join(", "));
}
}
}else{
......
......@@ -479,7 +479,8 @@ MWF.xApplication.process.Xform.DatagridPC = new Class({
}
}
}else{
this._createNewEditTd(newTr, idx, editorTds[idx].get("id"), data.text.join(", "), titleThs.length-1);
var text = this._getValueText(idx-1, data.text.join(", "));
this._createNewEditTd(newTr, idx, editorTds[idx].get("id"), text, titleThs.length-1);
}
}else{
if (!cell) this._createNewEditTd(newTr, idx, id, "", titleThs.length-1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册