update
parent
9e245fb533
commit
926132a285
|
@ -10,13 +10,35 @@ FluScrollablePage{
|
||||||
title:"Carousel"
|
title:"Carousel"
|
||||||
|
|
||||||
|
|
||||||
|
FluArea{
|
||||||
|
width: parent.width
|
||||||
|
height: 370
|
||||||
|
paddings: 10
|
||||||
|
Layout.topMargin: 20
|
||||||
|
|
||||||
|
Column{
|
||||||
|
spacing: 15
|
||||||
|
anchors{
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
left:parent.left
|
||||||
|
}
|
||||||
|
FluText{
|
||||||
|
|
||||||
|
text:"轮播图,支持无限轮播,无限滑动,用ListView实现的组件"
|
||||||
|
}
|
||||||
FluCarousel{
|
FluCarousel{
|
||||||
id:carousel
|
id:carousel
|
||||||
|
Layout.topMargin: 20
|
||||||
|
Layout.leftMargin: 5
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
carousel.setData([{color:"#000000"},{color:"#FFFFFF"},{color:"#666666"}])
|
carousel.setData([{url:"qrc:/res/image/banner_1.jpg"},{url:"qrc:/res/image/banner_2.jpg"},{url:"qrc:/res/image/banner_3.jpg"}])
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,6 @@ FluWindow {
|
||||||
title: "FluentUI"
|
title: "FluentUI"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FluObject{
|
FluObject{
|
||||||
id:original_items
|
id:original_items
|
||||||
|
|
||||||
|
|
|
@ -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 |
Loading…
Reference in New Issue