zhuzihcu 2023-05-09 17:18:10 +08:00
commit b20046c0a9
1 changed files with 10 additions and 0 deletions

View File

@ -121,6 +121,7 @@ Item {
id:pagination
height: 40
pageCurrent: control.pageCurrent
onPageCurrentChanged: control.pageCurrent = pageCurrent
itemCount: control.itemCount
pageCount: control.pageCount
onRequestPage:
@ -131,6 +132,15 @@ Item {
top: parent.top
right: parent.right
}
Connections{
target: control
function onPageCurrentChanged(){
if (control.pageCurrent!==pagination.pageCurrent)
{
pagination.calcNewPage(control.pageCurrent)
}
}
}
}
}
model:model_data_source