🐛(component): 优化 table 的 page 参数 total 值为 0 时取消分页组件的显示

This commit is contained in:
就眠儀式 2022-08-31 23:44:02 +08:00
parent dcf5876998
commit 81c93c23df
2 changed files with 2 additions and 2 deletions

View File

@ -862,7 +862,7 @@ onBeforeUnmount(() => {
<slot name="footer"></slot>
</div>
</div>
<div v-if="page" class="layui-table-page">
<div v-if="page && page.total > 0" class="layui-table-page">
<table-page
:show-page="page.showPage"
:showSkip="page.showSkip"

View File

@ -15,7 +15,7 @@
<template>
<lay-button @click="changeTotal">修改数据</lay-button>
<lay-button @click="changeMaxTotal">修改数据</lay-button>
<lay-scroll height="200px" style="background-color:whitesmoke;">
<lay-scroll height="200px" style="background-color:whitesmoke;height: calc(100% - 62px);">
<lay-panel v-for="(n,index) in total" :key="n" style="margin:10px;padding:10px;">内容</lay-panel>
</lay-scroll>
</template>