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
|
@ -19,37 +19,37 @@
|
|||
</script>
|
||||
|
||||
{#if count > 1}
|
||||
<li class:bx--pagination-nav__list-item="{true}">
|
||||
<div class:bx--pagination-nav__select="{true}">
|
||||
<li class:bx--pagination-nav__list-item={true}>
|
||||
<div class:bx--pagination-nav__select={true}>
|
||||
<!-- svelte-ignore a11y-no-onchange -->
|
||||
<select
|
||||
aria-label="Select Page number"
|
||||
value="{value}"
|
||||
class:bx--pagination-nav__page="{true}"
|
||||
class:bx--pagination-nav__page--select="{true}"
|
||||
on:change="{({ target }) => {
|
||||
value = '';
|
||||
dispatch('select', { index: Number(target.value) });
|
||||
}}"
|
||||
{value}
|
||||
class:bx--pagination-nav__page={true}
|
||||
class:bx--pagination-nav__page--select={true}
|
||||
on:change={({ target }) => {
|
||||
value = "";
|
||||
dispatch("select", { index: Number(target.value) });
|
||||
}}
|
||||
>
|
||||
<option value="" hidden></option>
|
||||
{#each Array.from({ length: count }, (_, i) => i) as i}
|
||||
<option value="{fromIndex + i + 1}" data-page="{fromIndex + i + 1}">
|
||||
<option value={fromIndex + i + 1} data-page={fromIndex + i + 1}>
|
||||
{fromIndex + i + 1}
|
||||
</option>
|
||||
{/each}
|
||||
</select>
|
||||
<div class:bx--pagination-nav__select-icon-wrapper="{true}">
|
||||
<div class:bx--pagination-nav__select-icon-wrapper={true}>
|
||||
<OverflowMenuHorizontal class="bx--pagination-nav__select-icon" />
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{:else if count === 1}
|
||||
<PaginationItem
|
||||
page="{fromIndex + 1}"
|
||||
on:click="{() => {
|
||||
dispatch('select', { index: fromIndex });
|
||||
}}"
|
||||
page={fromIndex + 1}
|
||||
on:click={() => {
|
||||
dispatch("select", { index: fromIndex });
|
||||
}}
|
||||
>
|
||||
Page
|
||||
</PaginationItem>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue