• {#if fit > MIN || (fit <= MIN && page <= 1)} { page = 1; dispatch("change", { page }); }} > {page === 1 ? "Active, Page" : "Page"} {/if} { page = detail.index; dispatch("change", { page }); }} /> {#each items as item} { page = item + 1; dispatch("change", { page }); }} > {page === item ? "Active, Page" : "Page"} {/each} { page = detail.index; dispatch("change", { page }); }} /> {#if total > 1} { page = total; dispatch("change", { page }); }} > {page === total ? "Active, Page" : "Page"} {/if}
Page {page + 1} of {total}