main
zhuzihcu 2023-03-15 14:48:48 +08:00
parent 9e245fb533
commit 926132a285
6 changed files with 30 additions and 6 deletions

View File

@ -10,13 +10,35 @@ FluScrollablePage{
title:"Carousel" title:"Carousel"
FluArea{
width: parent.width
height: 370
paddings: 10
Layout.topMargin: 20
FluCarousel{ Column{
id:carousel spacing: 15
anchors{
verticalCenter: parent.verticalCenter
left:parent.left
}
FluText{
Component.onCompleted: { text:"轮播图支持无限轮播无限滑动用ListView实现的组件"
carousel.setData([{color:"#000000"},{color:"#FFFFFF"},{color:"#666666"}]) }
FluCarousel{
id:carousel
Layout.topMargin: 20
Layout.leftMargin: 5
Component.onCompleted: {
carousel.setData([{url:"qrc:/res/image/banner_1.jpg"},{url:"qrc:/res/image/banner_2.jpg"},{url:"qrc:/res/image/banner_3.jpg"}])
}
}
} }
} }
} }

View File

@ -19,7 +19,6 @@ FluWindow {
title: "FluentUI" title: "FluentUI"
} }
FluObject{ FluObject{
id:original_items id:original_items

View File

@ -35,5 +35,8 @@
<file>T_MultiWindow.qml</file> <file>T_MultiWindow.qml</file>
<file>T_Menu.qml</file> <file>T_Menu.qml</file>
<file>T_Carousel.qml</file> <file>T_Carousel.qml</file>
<file>res/image/banner_1.jpg</file>
<file>res/image/banner_2.jpg</file>
<file>res/image/banner_3.jpg</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB