@@ -147,7 +147,7 @@
}
"
:key="scope.row.id"
- :btnNum="item.attrs.btnNum"/>
+ :btnNum="item.attrs.btnNum" />
</div>
<div v-else>
{{ getValue(scope, item) }}
@@ -165,6 +165,7 @@
:current-page="getPagination.pageNum"
:page-size="getPagination.pageSize"
:total="getPagination.total"
+ :page-sizes="sizes"
@size-change="handleSizeChange"
@current-change="handlePageChange" />
</el-row>
@@ -279,6 +280,12 @@ export default defineComponent({
type: Boolean,
default: false,
},
+ sizes: {
+ type: Array,
+ default() {
+ return [];
+ },
// 排序配置
defaultSort: {
type: Object,
@@ -6,6 +6,7 @@
:config="config"
:loading="loading"
:searchConfig="searchConfig"
+ :sizes="[10, 20, 30, 40, 50, 100, 200, 500]"
highlight-current-row
:action-list="[
{