【发布时间】:2019-12-09 00:49:53
【问题描述】:
我正在使用 AntDesign 的 TextArea,当我在其中输入 2-3 个段落时,然后按 Enter 以连续显示它,但它在一个段落中显示所有内容。我想要在文本区域中输入时所做的确切格式。该怎么做?
我只是使用文本区域-
<TextArea
rows={2}
style={{ width: "100%" }}
defaultValue={this.state.value}
onClick={this.handleValue}
/>
并显示在右侧-
<div>{this.state.value}</div>
预期
Hey, how are you doing today? I am fine. i hope your are fine
do give me a call when you are free.
contact - 1234567890
我得到的结果
Hey, how are you doing today? I am fine. i hope your are fine do give me a call when you are free. contact - 1234567890
【问题讨论】:
-
它只是我正在使用的 TextArea...我在@Peter 上方添加了它
-
在这个问题上您需要更多帮助吗?请让我知道或将我的答案标记为已接受。谢谢。
标签: html reactjs antd ant-design-pro