[优化]LayPage 限制用户在跳转输入时页码数不能超过最大页码

This commit is contained in:
castle 2021-12-27 16:52:35 +08:00
parent 7934cdea12
commit 32b30edff1

View File

@ -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>