mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
chore: format files with Prettier 3
This commit is contained in:
parent
1dcd09bd98
commit
8e996dc683
391 changed files with 3725 additions and 3785 deletions
|
@ -13,18 +13,12 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<ProgressBar
|
||||
labelText="Upload status"
|
||||
value="{value}"
|
||||
max="{max}"
|
||||
helperText="{helperText}"
|
||||
status="{status}"
|
||||
/>
|
||||
<ProgressBar labelText="Upload status" {value} {max} {helperText} {status} />
|
||||
|
||||
<ButtonSet style="margin-top: var(--cds-spacing-08)">
|
||||
<Button
|
||||
disabled="{value > 0}"
|
||||
on:click="{() => {
|
||||
disabled={value > 0}
|
||||
on:click={() => {
|
||||
const interval = setInterval(() => {
|
||||
const delta = Math.random() * 10;
|
||||
|
||||
|
@ -35,17 +29,17 @@
|
|||
clearInterval(interval);
|
||||
}
|
||||
}, 30);
|
||||
}}"
|
||||
}}
|
||||
>
|
||||
Start
|
||||
</Button>
|
||||
<Button
|
||||
kind="tertiary"
|
||||
disabled="{value !== max}"
|
||||
on:click="{() => {
|
||||
disabled={value !== max}
|
||||
on:click={() => {
|
||||
value = 0;
|
||||
status = 'active';
|
||||
}}"
|
||||
status = "active";
|
||||
}}
|
||||
>
|
||||
Reset
|
||||
</Button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue