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

rax-text 的 className 不支持数组形式 #434

Open
SmallStoneSK opened this issue Feb 21, 2022 · 0 comments
Open

rax-text 的 className 不支持数组形式 #434

SmallStoneSK opened this issue Feb 21, 2022 · 0 comments

Comments

@SmallStoneSK
Copy link

如题所述,当 className 传的是数组时,最终生成的 className 中间会多一个 逗号

原因如下:

https://github.com/raxjs/rax-components/blob/master/packages/rax-text/src/web/index.tsx#L28

这里的 className 应该要判断是否为数组,不能直接放在 classNames 中。

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

1 participant