-
Notifications
You must be signed in to change notification settings - Fork 63
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
cannot use '\n' in custom format text #14
Comments
Can you give me a small static example in order to reproduce this issue? regards, |
same issue |
Formatter doesn't work, any plan to add this @tomLadder ? |
@SHIEER Yes someone should definitely have a look at it. |
const airOption2 = ({ it will catch, if you add '\n'。 |
formatter: function (value, index) { if use |
Currently working on Cheers, |
Just released v2.0.0 🎉 |
such as code below, '\n' is replaced by toString
label: { // 在文本中,可以对部分文本采用 rich 中定义样式。 // 这里需要在文本中使用标记符号: //
{styleName|text content text content}` 标记样式名。// 注意,换行仍是使用 '\n'。
formatter: [
'{a|这段文本采用样式a}',
'{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'
].join('\n'),
}
`
The text was updated successfully, but these errors were encountered: