!9 [优化]显示数量同时显示页数,限制用户输入跳转页码时输入值不得大于最大页码数
Merge pull request !9 from 鄢鹏权/develop
This commit is contained in:
commit
c66b00f066
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="layui-box layui-laypage layui-laypage-default">
|
||||
<span v-if="showCount" class="layui-laypage-count">共 {{ total }} 条</span>
|
||||
<span v-if="showCount" class="layui-laypage-count">共 {{ total }} 条 {{ maxPage }}页</span>
|
||||
<a
|
||||
href="javascript:;"
|
||||
class="layui-laypage-prev"
|
||||
@ -40,7 +40,12 @@
|
||||
<span v-if="showSkip" class="layui-laypage-skip">
|
||||
到第
|
||||
<input v-model="currentPageShow" type="number" class="layui-input layui-input-number" />页
|
||||
<button type="button" class="layui-laypage-btn" @click="jumpPage()">确定</button>
|
||||
<button
|
||||
type="button"
|
||||
class="layui-laypage-btn"
|
||||
@click="jumpPage()"
|
||||
:disabled="currentPageShow > maxPage"
|
||||
>确定</button>
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user