【发布时间】:2020-09-25 06:40:00
【问题描述】:
我想在甜蜜警报 2 的 swal.text 处换行一些文本。我尝试了 br, \r \n , join(\n\n) 但对我不起作用!请帮我解决我的问题。谢谢你的帮助:D。这是我的代码
<swal #extractDataDoneSwal
title="Exported"
text="Your files have been exported"
icon="success">
</swal>
if (data == "1") {
this.exportFile = this.insurerNo.toString() + "_Med.SAT";
this.loading = false;
const lines = ['Your files have been exported',this.exportFile];
this.extractDataDoneSwal.text = lines.join('\n\n');
this.extractDataDoneSwal.fire();
}
【问题讨论】:
标签: angular typescript sweetalert2