Skip to content

Commit f85b044

Browse files
authored
fix: table style bug in mini size option (PanJiaChen#1081)
PanJiaChen#1080
1 parent ed44272 commit f85b044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/table/complexTable.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
border
2525
fit
2626
highlight-current-row
27-
style="width: 100%;min-height:1000px;">
27+
style="width: 100%;">
2828
<el-table-column :label="$t('table.id')" align="center" width="65">
2929
<template slot-scope="scope">
3030
<span>{{ scope.row.id }}</span>
@@ -81,7 +81,7 @@
8181
</el-table>
8282

8383
<div class="pagination-container">
84-
<el-pagination :current-page="listQuery.page" :page-sizes="[10,20,30, 50]" :page-size="listQuery.limit" :total="total" background layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" @current-change="handleCurrentChange"/>
84+
<el-pagination v-show="total>0" :current-page="listQuery.page" :page-sizes="[10,20,30, 50]" :page-size="listQuery.limit" :total="total" background layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" @current-change="handleCurrentChange"/>
8585
</div>
8686

8787
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">

0 commit comments

Comments
 (0)