{#if totalPage === 0}
{noDataText}
{:else if totalPage === 1}
{onePageText}
{:else if totalPage > 1 && totalPage <= maxShowPage}
{#each new Array(totalPage) as item, index}
!continuous && clickItemFunc(index + 1)}>
{index + 1}
{/each}
{:else}
!continuous && clickItemFunc(1)}>1
{#if showPreEllipsis}
{#if type === 'bold' && showPreOmitPage}
{:else}
{/if}
{/if}
{#if !showPreEllipsis && current <= maxShowPage - 1}
{#each new Array(maxShowPage - 3) as item, index}
!continuous && clickItemFunc(index + 2)}>
{index + 2}
{/each}
{/if}
{#if middleShowPage.length > 0}
{#each middleShowPage as item, index}
!continuous && clickItemFunc(item)}>
{item}
{/each}
{/if}
{#if !showNextEllipsis && current > totalPage - (maxShowPage - 3)}
{#each new Array(maxShowPage - 3) as item, index}
!continuous && clickItemFunc(totalPage + index + 3 - maxShowPage)}
>
{totalPage + index + 3 - maxShowPage}
{/each}
{/if}
{#if showNextEllipsis}
{#if type === 'bold' && showNextOmitPage}
{:else}
{/if}
{/if}
!continuous && clickItemFunc(totalPage)}>{totalPage}
{/if}
{#if showNextOmitPage}
{/if}
{#if showPreOmitPage}
{/if}