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
|
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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|