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

不能显示小数点哦。。。 #6

Closed
qingbopro opened this issue Oct 26, 2017 · 3 comments
Closed

不能显示小数点哦。。。 #6

qingbopro opened this issue Oct 26, 2017 · 3 comments

Comments

@qingbopro
Copy link

不能显示小数点哦。。。
而且会多出来一个无用的span元素。。。
可以改造一下吗

@PanJiaChen
Copy link
Owner

要手动设置 小数点精确位数
如: :decimals=2

@qingbopro
Copy link
Author

奥,看到了谢谢,要是支持传字符串就完美了,后台传来的数据是'1,234.23'这种的话,我还要Number(num.replace(/,/g,''))

@PanJiaChen
Copy link
Owner

这种还是自已formar一下比较好,组件来做的话要考虑的情况太多了

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