Display numbers using the locale format in tables
This commit is contained in:
parent
02a60ba55d
commit
1109e27b04
|
@ -52,7 +52,11 @@
|
|||
{:else}
|
||||
<div class="text-cell" class:number={type === "number"}>
|
||||
<div class="value">
|
||||
{value ?? ""}
|
||||
{#if type === "number"}
|
||||
{(value ?? "").toLocaleString()}
|
||||
{:else}
|
||||
{value ?? ""}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in New Issue