mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 13:27:05 +08:00
update
This commit is contained in:
parent
9e245fb533
commit
926132a285
@ -10,13 +10,35 @@ FluScrollablePage{
|
||||
title:"Carousel"
|
||||
|
||||
|
||||
FluArea{
|
||||
width: parent.width
|
||||
height: 370
|
||||
paddings: 10
|
||||
Layout.topMargin: 20
|
||||
|
||||
FluCarousel{
|
||||
id:carousel
|
||||
Column{
|
||||
spacing: 15
|
||||
anchors{
|
||||
verticalCenter: parent.verticalCenter
|
||||
left:parent.left
|
||||
}
|
||||
FluText{
|
||||
|
||||
Component.onCompleted: {
|
||||
carousel.setData([{color:"#000000"},{color:"#FFFFFF"},{color:"#666666"}])
|
||||
text:"轮播图,支持无限轮播,无限滑动,用ListView实现的组件"
|
||||
}
|
||||
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"}])
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ FluWindow {
|
||||
title: "FluentUI"
|
||||
}
|
||||
|
||||
|
||||
FluObject{
|
||||
id:original_items
|
||||
|
||||
|
@ -35,5 +35,8 @@
|
||||
<file>T_MultiWindow.qml</file>
|
||||
<file>T_Menu.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>
|
||||
</RCC>
|
||||
|
BIN
example/res/image/banner_1.jpg
Normal file
BIN
example/res/image/banner_1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 300 KiB |
BIN
example/res/image/banner_2.jpg
Normal file
BIN
example/res/image/banner_2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 298 KiB |
BIN
example/res/image/banner_3.jpg
Normal file
BIN
example/res/image/banner_3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 130 KiB |
Loading…
Reference in New Issue
Block a user