!9 [优化]显示数量同时显示页数,限制用户输入跳转页码时输入值不得大于最大页码数

Merge pull request !9 from 鄢鹏权/develop
This commit is contained in:
就眠儀式 2021-12-27 08:55:03 +00:00 committed by Gitee
commit c66b00f066

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="layui-box layui-laypage layui-laypage-default"> <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 <a
href="javascript:;" href="javascript:;"
class="layui-laypage-prev" class="layui-laypage-prev"
@ -40,7 +40,12 @@
<span v-if="showSkip" class="layui-laypage-skip"> <span v-if="showSkip" class="layui-laypage-skip">
到第 到第
<input v-model="currentPageShow" type="number" class="layui-input layui-input-number" /> <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> </span>
</div> </div>
</template> </template>