|
|
|
@ -59,13 +59,16 @@ const props = defineProps({
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits();
|
|
|
|
|
const emit = defineEmits(['pagination']);
|
|
|
|
|
const limit = defineModel('limit');
|
|
|
|
|
const page = defineModel('page');
|
|
|
|
|
|
|
|
|
|
const currentPage = computed({
|
|
|
|
|
get() {
|
|
|
|
|
return props.page
|
|
|
|
|
},
|
|
|
|
|
set(val) {
|
|
|
|
|
emit('update:page', val)
|
|
|
|
|
page.value = val
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
const pageSize = computed({
|
|
|
|
@ -73,7 +76,7 @@ const pageSize = computed({
|
|
|
|
|
return props.limit
|
|
|
|
|
},
|
|
|
|
|
set(val){
|
|
|
|
|
emit('update:limit', val)
|
|
|
|
|
limit.value = val
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
function handleSizeChange(val) {
|
|
|
|
|