2023-03-25 13:35:21 +08:00
|
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
import QtQuick.Window 2.15
|
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
import FluentUI 1.0
|
2023-03-10 18:08:32 +08:00
|
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
|
|
|
|
|
property alias title: text_title.text
|
|
|
|
|
default property alias content: container.data
|
|
|
|
|
property int spacing : 5
|
|
|
|
|
|
2023-03-27 18:24:35 +08:00
|
|
|
|
id:root
|
|
|
|
|
|
2023-03-10 18:08:32 +08:00
|
|
|
|
FluText{
|
|
|
|
|
id:text_title
|
|
|
|
|
fontStyle: FluText.TitleLarge
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-14 18:23:12 +08:00
|
|
|
|
Flickable{
|
2023-03-10 18:08:32 +08:00
|
|
|
|
clip: true
|
|
|
|
|
width: parent.width
|
|
|
|
|
contentWidth: parent.width
|
2023-03-14 18:23:12 +08:00
|
|
|
|
contentHeight: container.height
|
2023-03-15 14:49:33 +08:00
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
2023-03-14 18:23:12 +08:00
|
|
|
|
ScrollBar.vertical: ScrollBar { }
|
2023-03-10 18:08:32 +08:00
|
|
|
|
anchors{
|
|
|
|
|
top: text_title.bottom
|
|
|
|
|
bottom: parent.bottom
|
|
|
|
|
}
|
|
|
|
|
ColumnLayout{
|
|
|
|
|
id:container
|
|
|
|
|
spacing: root.spacing
|
|
|
|
|
width: parent.width
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|