Fix progressbar using undefined variables
This commit is contained in:
parent
900637c221
commit
4f4fa0f9bc
|
@ -33,22 +33,14 @@
|
||||||
>
|
>
|
||||||
{#if $$slots}
|
{#if $$slots}
|
||||||
<div
|
<div
|
||||||
class:spectrum-FieldLabel--sizeS={s}
|
class="spectrum-FieldLabel spectrum-ProgressBar-label spectrum-FieldLabel--size{size}"
|
||||||
class:spectrum-FieldLabel--sizeM={m}
|
|
||||||
class:spectrum-FieldLabel--sizeL={l}
|
|
||||||
class:spectrum-FieldLabel--sizeXL={xl}
|
|
||||||
class="spectrum-FieldLabel spectrum-ProgressBar-label"
|
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if value}
|
{#if value}
|
||||||
<div
|
<div
|
||||||
class:spectrum-FieldLabel--sizeS={s}
|
class="spectrum-FieldLabel spectrum-ProgressBar-percentage spectrum-FieldLabel--size{size}"
|
||||||
class:spectrum-FieldLabel--sizeM={m}
|
|
||||||
class:spectrum-FieldLabel--sizeL={l}
|
|
||||||
class:spectrum-FieldLabel--sizeXL={xl}
|
|
||||||
class="spectrum-FieldLabel spectrum-ProgressBar-percentage"
|
|
||||||
>
|
>
|
||||||
{Math.round($progress)}%
|
{Math.round($progress)}%
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue