mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-24 03:30:59 +08:00
35 lines
677 B
QML
35 lines
677 B
QML
|
import QtQuick 2.15
|
|||
|
import QtQuick.Layouts 1.15
|
|||
|
import QtQuick.Window 2.15
|
|||
|
import QtQuick.Controls 2.15
|
|||
|
import FluentUI 1.0
|
|||
|
|
|||
|
Item {
|
|||
|
|
|||
|
id:root
|
|||
|
|
|||
|
property alias title: text_title.text
|
|||
|
default property alias content: container.data
|
|||
|
property int spacing : 5
|
|||
|
|
|||
|
FluText{
|
|||
|
id:text_title
|
|||
|
fontStyle: FluText.TitleLarge
|
|||
|
}
|
|||
|
|
|||
|
ScrollView{
|
|||
|
clip: true
|
|||
|
width: parent.width
|
|||
|
contentWidth: parent.width
|
|||
|
anchors{
|
|||
|
top: text_title.bottom
|
|||
|
bottom: parent.bottom
|
|||
|
}
|
|||
|
ColumnLayout{
|
|||
|
id:container
|
|||
|
spacing: root.spacing
|
|||
|
width: parent.width
|
|||
|
}
|
|||
|
}
|
|||
|
}
|