我试图在我的通知中使用\n,但它没有起作用。我该用什么代替。
notification.warning({
message: 'Notification Title',
description:
'This is the content of the notification.\n This is the content of the notification. This is the content of the notification.',
});发布于 2022-01-06 09:46:28
很简单。只需使用HTML而不是字符串。
notification.warning({
message: 'Notification Title',
description: (
<>
This is the content of the notification.<br />
This is the content of the notification. This is the content of the notification.
</>
),
});这里我为你做了一个演示。
https://stackoverflow.com/questions/70604884
复制相似问题