antd TextArea placeholder文案换行的几种方式
const App = () => {
const value = `例子:\n今天天气不错`;
const value1 = `例子:\r今天天气不错`;
return (
<>
<TextArea
placeholder="例子: 今天天气不错"
style={{ height: 80 }}
/>
<br />
<TextArea placeholder={value} style={{ height: 80 }} />
<br />
<TextArea placeholder={value1} style={{ height: 80 }} />
</>
);
};