This commit is contained in:
zhuzihcu 2023-05-09 17:17:57 +08:00
parent eaad0dc565
commit b5c0ec50a8
5 changed files with 14 additions and 12 deletions

View File

@ -124,15 +124,15 @@ FluWindow {
Layout.preferredHeight: 252
Row{
anchors.horizontalCenter: parent.horizontalCenter
spacing: 60
spacing: 30
Image{
width: 164.55
height: 224.25
width: 250
height: 250
source: "qrc:/example/res/image/qrcode_wx.jpg"
}
Image{
width: 162
height: 252
width: 250
height: 250
source: "qrc:/example/res/image/qrcode_zfb.jpg"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -11,6 +11,7 @@ Item {
property int itemCount: 1000
property int pageCount: 10
property int itemHeight: 56
property bool pageVisible: true
signal requestPage(int page,int count)
id:control
@ -59,6 +60,7 @@ Item {
right: parent.right
}
contentWidth: layout_table.width
clip:true
ScrollBar.horizontal: FluScrollBar {
}
Rectangle{
@ -104,7 +106,7 @@ Item {
height: 40
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
visible: index !== list_coumns.count-1
visible: index !== model_coumns.count-1
}
}
}
@ -112,7 +114,8 @@ Item {
}
footer: Item{
height: 50
height: pageVisible ? 50 : 0
clip: true
width: layout_table.width
FluPagination{
id:pagination
@ -176,8 +179,6 @@ Item {
}
}
}
}

View File

@ -141,6 +141,7 @@ Item {
currentParentElement = item_layout.parent.itemModel
}
}
itemClicked(model)
}
if(selectionMode === FluTreeView.Multiple){
@ -300,8 +301,8 @@ Item {
return result
}
function createItem(text="Title",expanded=true,items=[]){
return {text:text,expanded:expanded,items:items,key:uniqueRandom(),multipSelected:false,multipIndex:0,multipParentKey:""};
function createItem(text="",expanded=true,items=[],data={}){
return {text:text,expanded:expanded,items:items,key:uniqueRandom(),multipSelected:false,multipIndex:0,multipParentKey:"",data:data};
}
function uniqueRandom() {