mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-01-22 23:50:22 +08:00
Compare commits
6 Commits
2.x_vxe-ta
...
dc997d546c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc997d546c | ||
|
|
9b43b9cad3 | ||
|
|
85867263e6 | ||
|
|
3c6dce3eeb | ||
|
|
fa0219ef99 | ||
|
|
2b36f535c7 |
@@ -21,9 +21,6 @@
|
|||||||
<template #loading>
|
<template #loading>
|
||||||
<n-spin :show="loading" />
|
<n-spin :show="loading" />
|
||||||
</template>
|
</template>
|
||||||
<template #total>
|
|
||||||
<span class="font-size-14 line-height-28px">共 {{ pagerConfig.total }} 条数据</span>
|
|
||||||
</template>
|
|
||||||
<template v-for="(c, k) in slots" :key="k" #[c.key]="{ row }">
|
<template v-for="(c, k) in slots" :key="k" #[c.key]="{ row }">
|
||||||
<template v-if="Array.isArray(c.render(row))">
|
<template v-if="Array.isArray(c.render(row))">
|
||||||
<component :is="r" v-for="(r, k1) in c.render(row)" :key="k1" :row="row" :col="c" />
|
<component :is="r" v-for="(r, k1) in c.render(row)" :key="k1" :row="row" :col="c" />
|
||||||
@@ -138,7 +135,7 @@ const pagerConfig = computed(() => {
|
|||||||
return {
|
return {
|
||||||
currentPage: props.pagination.pageNo,
|
currentPage: props.pagination.pageNo,
|
||||||
pageSize: props.pagination.pageSize,
|
pageSize: props.pagination.pageSize,
|
||||||
total: props.pagination.itemCount || 0,
|
total: props.pagination.itemCount,
|
||||||
background: true,
|
background: true,
|
||||||
size: 'small',
|
size: 'small',
|
||||||
layouts: [
|
layouts: [
|
||||||
@@ -149,11 +146,8 @@ const pagerConfig = computed(() => {
|
|||||||
'End',
|
'End',
|
||||||
'Sizes',
|
'Sizes',
|
||||||
'FullJump',
|
'FullJump',
|
||||||
// 'Total',
|
'Total',
|
||||||
],
|
],
|
||||||
slots: {
|
|
||||||
right: 'total',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user