Commit 3ae963c9 by liuxin

inputXml控件调整

parent 4a5e5df5
......@@ -62,16 +62,15 @@ export default {
methods: {
show: function (rows) {
let strs = rows.length > 0 ? rows[0] : "";
var result = "";
if (strs.startsWith("<?xml")) {
this.isXml = true;
var pattern = /<tdfmt\s[^>]*>(.*)<\/tdfmt>/;
var temp = pattern.exec(strs);
if (temp != null) {
result = temp[1];
strs = temp[1];
}
}
return result.replace(/<br\/>/g, "\n");
return strs.replace(/<br\/>/g, "\n");
},
format: function (value) {
if(this.isXml){
......
......@@ -97,7 +97,6 @@
size="small"
icon="el-icon-search"
type="primary"
@click="onExtkey"
></c-button>
</template>
</c-fullbox>
......
......@@ -9,7 +9,7 @@
prop="mtabut.coninf.oitinf.oit.inftxt"
>
<c-input-xml
:maxRows="6"
:maxRows="10"
maxlength="60"
resize="none"
show-word-limit
......@@ -46,7 +46,7 @@
>
<c-input-xml
type="textarea"
:maxRows="6"
:maxRows="10"
maxlength="60"
resize="none"
show-word-limit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment