mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
update
This commit is contained in:
parent
eaad0dc565
commit
b5c0ec50a8
@ -124,15 +124,15 @@ FluWindow {
|
|||||||
Layout.preferredHeight: 252
|
Layout.preferredHeight: 252
|
||||||
Row{
|
Row{
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
spacing: 60
|
spacing: 30
|
||||||
Image{
|
Image{
|
||||||
width: 164.55
|
width: 250
|
||||||
height: 224.25
|
height: 250
|
||||||
source: "qrc:/example/res/image/qrcode_wx.jpg"
|
source: "qrc:/example/res/image/qrcode_wx.jpg"
|
||||||
}
|
}
|
||||||
Image{
|
Image{
|
||||||
width: 162
|
width: 250
|
||||||
height: 252
|
height: 250
|
||||||
source: "qrc:/example/res/image/qrcode_zfb.jpg"
|
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 |
@ -11,6 +11,7 @@ Item {
|
|||||||
property int itemCount: 1000
|
property int itemCount: 1000
|
||||||
property int pageCount: 10
|
property int pageCount: 10
|
||||||
property int itemHeight: 56
|
property int itemHeight: 56
|
||||||
|
property bool pageVisible: true
|
||||||
signal requestPage(int page,int count)
|
signal requestPage(int page,int count)
|
||||||
|
|
||||||
id:control
|
id:control
|
||||||
@ -59,6 +60,7 @@ Item {
|
|||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
contentWidth: layout_table.width
|
contentWidth: layout_table.width
|
||||||
|
clip:true
|
||||||
ScrollBar.horizontal: FluScrollBar {
|
ScrollBar.horizontal: FluScrollBar {
|
||||||
}
|
}
|
||||||
Rectangle{
|
Rectangle{
|
||||||
@ -104,7 +106,7 @@ Item {
|
|||||||
height: 40
|
height: 40
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: index !== list_coumns.count-1
|
visible: index !== model_coumns.count-1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -112,7 +114,8 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
footer: Item{
|
footer: Item{
|
||||||
height: 50
|
height: pageVisible ? 50 : 0
|
||||||
|
clip: true
|
||||||
width: layout_table.width
|
width: layout_table.width
|
||||||
FluPagination{
|
FluPagination{
|
||||||
id:pagination
|
id:pagination
|
||||||
@ -176,8 +179,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -141,6 +141,7 @@ Item {
|
|||||||
currentParentElement = item_layout.parent.itemModel
|
currentParentElement = item_layout.parent.itemModel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
itemClicked(model)
|
||||||
}
|
}
|
||||||
if(selectionMode === FluTreeView.Multiple){
|
if(selectionMode === FluTreeView.Multiple){
|
||||||
|
|
||||||
@ -300,8 +301,8 @@ Item {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
function createItem(text="Title",expanded=true,items=[]){
|
function createItem(text="",expanded=true,items=[],data={}){
|
||||||
return {text:text,expanded:expanded,items:items,key:uniqueRandom(),multipSelected:false,multipIndex:0,multipParentKey:""};
|
return {text:text,expanded:expanded,items:items,key:uniqueRandom(),multipSelected:false,multipIndex:0,multipParentKey:"",data:data};
|
||||||
}
|
}
|
||||||
|
|
||||||
function uniqueRandom() {
|
function uniqueRandom() {
|
||||||
|
Loading…
Reference in New Issue
Block a user