小编Bat*_*lay的帖子

如何在 antd 通知中使用换行符

我尝试在通知的描述中使用\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.',
  });
Run Code Online (Sandbox Code Playgroud)

antd

5
推荐指数
1
解决办法
3155
查看次数

标签 统计

antd ×1