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

常量声明错误,导致在数值过大时输出错误的格式化结果 #5

Open
doommm opened this issue May 8, 2019 · 0 comments

Comments

@doommm
Copy link

doommm commented May 8, 2019

打包后的代码文件index.es.js,第一个声明的常量ABBR

// numerify
var ABBR = {
  th: 3,
  mi: 6,
  bi: 9,
  tr: 12
};

// numeral
var abbreviations = {
  thousand: 'k',
  million: 'm',
  billion: 'b',
  trillion: 't',
};

numeral很类似中这一块用来声明locale相关的文本,不明白为什么这里变成了长度,并且调用的3处引用的属性名全部错误

已知的bug是数值长度超15位时返回错误结果。不知道您这边方便更新吗?因为v-charts也用了这个库,如果不更新的话还是蛮头疼的 @xiguaxigua

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