mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
Let the pagination can be manually adjusted in FluTableView.
This commit is contained in:
parent
eaad0dc565
commit
26e9b5d298
@ -118,6 +118,7 @@ Item {
|
||||
id:pagination
|
||||
height: 40
|
||||
pageCurrent: control.pageCurrent
|
||||
onPageCurrentChanged: control.pageCurrent = pageCurrent
|
||||
itemCount: control.itemCount
|
||||
pageCount: control.pageCount
|
||||
onRequestPage:
|
||||
@ -128,6 +129,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
|
||||
|
Loading…
Reference in New Issue
Block a user