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