备注信息可换行

This commit is contained in:
huangdeliang
2021-03-18 14:31:04 +08:00
parent 683593ba16
commit 4fc71f9ac0

View File

@ -21,10 +21,15 @@ export default {
if (
this.value &&
typeof this.value === "string" &&
this.value.includes("</br>")
(this.value.includes("</br>") || this.value.includes("\n"))
) {
this.newLine = true;
if (this.value.includes("</br>")) {
return this.value.split("</br>");
} else if (this.value.includes("\n")) {
return this.value.split("\n");
}
return this.value;
}
return this.value;
},