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

badge 动态绑定后,红色圆圈不再是正圆? #1223

Closed
bulolo opened this issue Apr 7, 2017 · 1 comment
Closed

badge 动态绑定后,红色圆圈不再是正圆? #1223

bulolo opened this issue Apr 7, 2017 · 1 comment

Comments

@bulolo
Copy link

bulolo commented Apr 7, 2017

当不是动态绑定的时候:
image

<badge text="2"></badge>

动态绑定的时候:
image

<badge :text="cart.items.length"></badge>

很奇怪,为何红色圆圈不再正圆?

@airyland
Copy link
Owner

airyland commented Apr 8, 2017

数字类型有逻辑问题。
当前版本你可以转为字符串 :text="cart.items.length + ''"

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

2 participants