[优化]LayPage 限制用户在跳转输入时页码数不能超过最大页码
This commit is contained in:
parent
7934cdea12
commit
32b30edff1
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user