mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-11 17:20:04 +08:00
46 lines
1.0 KiB
QML
46 lines
1.0 KiB
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 {
|
|
|
|
property alias title: text_title.text
|
|
default property alias content: container.data
|
|
property int leftPadding: 0
|
|
property int topPadding: 0
|
|
property int rightPadding: 0
|
|
property int bottomPadding: 0
|
|
|
|
id:control
|
|
|
|
FluText{
|
|
id:text_title
|
|
fontStyle: FluText.TitleLarge
|
|
anchors{
|
|
top: parent.top
|
|
topMargin: control.topPadding
|
|
left: parent.left
|
|
right: parent.right
|
|
leftMargin: control.leftPadding
|
|
rightMargin: control.rightPadding
|
|
}
|
|
}
|
|
|
|
Item{
|
|
clip: true
|
|
id:container
|
|
anchors{
|
|
left: parent.left
|
|
right: parent.right
|
|
top: text_title.bottom
|
|
bottom: parent.bottom
|
|
leftMargin: control.leftPadding
|
|
rightMargin: control.rightPadding
|
|
bottomMargin: control.bottomPadding
|
|
}
|
|
}
|
|
|
|
}
|