This commit is contained in:
zhuzichu
2023-12-13 18:13:35 +08:00
parent 3c924bb0de
commit 6974b0efa6
9 changed files with 26 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import FluentUI 1.0
Window {
default property alias content: container.data
property string windowIcon: FluApp.windowIcon
property bool closeDestory: true
property int launchMode: FluWindowType.Standard
property var argument:({})
@ -22,6 +23,7 @@ Window {
showMinimize: window.showMinimize
showMaximize: window.showMaximize
showStayTop: window.showStayTop
icon: window.windowIcon
}
property color backgroundColor: {
if(active){
@ -52,6 +54,7 @@ Window {
signal initArgument(var argument)
signal firstVisible()
id:window
flags: Qt.Window | Qt.WindowTitleHint | Qt.WindowSystemMenuHint | Qt.WindowMinMaxButtonsHint | Qt.WindowCloseButtonHint
maximumWidth: fixSize ? width : 16777215
maximumHeight: fixSize ? height : 16777215
minimumWidth: fixSize ? width : 0