mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
Merge branch 'main' of https://github.com/zhuzichu520/FluentUI
This commit is contained in:
commit
b20046c0a9
@ -121,6 +121,7 @@ Item {
|
|||||||
id:pagination
|
id:pagination
|
||||||
height: 40
|
height: 40
|
||||||
pageCurrent: control.pageCurrent
|
pageCurrent: control.pageCurrent
|
||||||
|
onPageCurrentChanged: control.pageCurrent = pageCurrent
|
||||||
itemCount: control.itemCount
|
itemCount: control.itemCount
|
||||||
pageCount: control.pageCount
|
pageCount: control.pageCount
|
||||||
onRequestPage:
|
onRequestPage:
|
||||||
@ -131,6 +132,15 @@ Item {
|
|||||||
top: parent.top
|
top: parent.top
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
|
Connections{
|
||||||
|
target: control
|
||||||
|
function onPageCurrentChanged(){
|
||||||
|
if (control.pageCurrent!==pagination.pageCurrent)
|
||||||
|
{
|
||||||
|
pagination.calcNewPage(control.pageCurrent)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
model:model_data_source
|
model:model_data_source
|
||||||
|
Loading…
Reference in New Issue
Block a user