forked from geolba/tethys.frontend
- added CTS Logo
- updated npm packages like vue-facing-decorator and some prettier and eslint dev dependecies - remove node-polyfill-webpack-plugin
This commit is contained in:
parent
6f63db4a71
commit
a85debca92
13 changed files with 1685 additions and 2415 deletions
|
@ -82,7 +82,7 @@ export default class BaseWidget extends Vue {
|
|||
return `${value.toLocaleString("en-us")} ${label}s`;
|
||||
}
|
||||
|
||||
public formatNumbers(num: any) {
|
||||
public formatNumbers(num: number) {
|
||||
if (num < 1e3) return num;
|
||||
if (num >= 1e3 && num < 1e6) return `${+(num / 1e3).toFixed(1)}K`;
|
||||
if (num >= 1e6 && num < 1e9) return `${+(num / 1e6).toFixed(1)}M`;
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue