!144 备注信息可换行

Merge pull request !144 from 德仔/develop
This commit is contained in:
德仔
2021-03-18 14:32:13 +08:00
committed by Gitee

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;
return this.value.split("</br>");
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;
},