2023-03-30 21:52:55 +08:00
|
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Window
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import FluentUI
|
2023-03-10 18:08:32 +08:00
|
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
|
|
|
|
|
property alias title: text_title.text
|
|
|
|
|
default property alias content: container.data
|
2023-03-28 17:53:46 +08:00
|
|
|
|
property int leftPadding: 0
|
|
|
|
|
property int topPadding: 0
|
|
|
|
|
property int rightPadding: 0
|
|
|
|
|
property int bottomPadding: 0
|
2023-03-10 18:08:32 +08:00
|
|
|
|
|
2023-03-28 17:53:46 +08:00
|
|
|
|
id:control
|
2023-03-27 18:24:35 +08:00
|
|
|
|
|
2023-03-10 18:08:32 +08:00
|
|
|
|
FluText{
|
|
|
|
|
id:text_title
|
|
|
|
|
fontStyle: FluText.TitleLarge
|
2023-03-28 17:53:46 +08:00
|
|
|
|
anchors{
|
|
|
|
|
top: parent.top
|
|
|
|
|
topMargin: control.topPadding
|
|
|
|
|
left: parent.left
|
|
|
|
|
right: parent.right
|
|
|
|
|
leftMargin: control.leftPadding
|
|
|
|
|
rightMargin: control.rightPadding
|
|
|
|
|
}
|
2023-03-10 18:08:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Item{
|
|
|
|
|
clip: true
|
|
|
|
|
id:container
|
|
|
|
|
anchors{
|
2023-03-28 17:53:46 +08:00
|
|
|
|
left: parent.left
|
|
|
|
|
right: parent.right
|
2023-03-10 18:08:32 +08:00
|
|
|
|
top: text_title.bottom
|
|
|
|
|
bottom: parent.bottom
|
2023-03-28 17:53:46 +08:00
|
|
|
|
leftMargin: control.leftPadding
|
|
|
|
|
rightMargin: control.rightPadding
|
|
|
|
|
bottomMargin: control.bottomPadding
|
2023-03-10 18:08:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|