备注信息可换行
This commit is contained in:
@ -21,10 +21,15 @@ export default {
|
|||||||
if (
|
if (
|
||||||
this.value &&
|
this.value &&
|
||||||
typeof this.value === "string" &&
|
typeof this.value === "string" &&
|
||||||
this.value.includes("</br>")
|
(this.value.includes("</br>") || this.value.includes("\n"))
|
||||||
) {
|
) {
|
||||||
this.newLine = true;
|
this.newLine = true;
|
||||||
|
if (this.value.includes("</br>")) {
|
||||||
return this.value.split("</br>");
|
return this.value.split("</br>");
|
||||||
|
} else if (this.value.includes("\n")) {
|
||||||
|
return this.value.split("\n");
|
||||||
|
}
|
||||||
|
return this.value;
|
||||||
}
|
}
|
||||||
return this.value;
|
return this.value;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user