Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal 的简化使用 \n\r 无法换行 #1617

Closed
JoshYuJump opened this issue Jun 11, 2023 · 3 comments
Closed

Modal 的简化使用 \n\r 无法换行 #1617

JoshYuJump opened this issue Jun 11, 2023 · 3 comments

Comments

@JoshYuJump
Copy link

问题描述

<AtModal
  isOpened
  title='标题'
  cancelText='取消'
  confirmText='确认'
  onClose={ this.handleClose }
  onCancel={ this.handleCancel }
  onConfirm={ this.handleConfirm }
  content='欢迎加入京东凹凸实验室\n\r欢迎加入京东凹凸实验室'
/>

复现步骤
将以上官网示例代码,放入组件。

期望行为
\n\r 能够实现换行

报错信息

系统信息
"@tarojs/taro": "3.5.12",
"taro-ui": "^3.1.0-beta.4"

补充信息
运行环境:微信小程序

@taro-ui-bot
Copy link

taro-ui-bot bot commented Jun 11, 2023

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@robinv8 robinv8 added the bug Something isn't working label Jun 16, 2023
@huangcs427
Copy link

我也有这个问题,测试后发现\n\r替换为<br />可以换行

@robinv8 robinv8 added fixed but not released 已修复但未发布 and removed bug Something isn't working fixed but not released 已修复但未发布 labels Aug 17, 2023
@robinv8
Copy link
Member

robinv8 commented Aug 17, 2023

安装最新版

npm install taro-ui@next

@robinv8 robinv8 closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants