mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
79 lines
1.7 KiB
QML
79 lines
1.7 KiB
QML
import QtQuick
|
||
import QtQuick.Layouts
|
||
import QtQuick.Window
|
||
import QtQuick.Controls
|
||
import FluentUI
|
||
|
||
FluScrollablePage{
|
||
|
||
title:"MultiWindow"
|
||
leftPadding:10
|
||
rightPadding:10
|
||
bottomPadding:20
|
||
|
||
property string password: ""
|
||
|
||
property var loginPageRegister: registerForPageResult("/login")
|
||
|
||
Connections{
|
||
target: loginPageRegister
|
||
function onResult(data)
|
||
{
|
||
password = data.password
|
||
}
|
||
}
|
||
|
||
FluArea{
|
||
Layout.fillWidth: true
|
||
height: 100
|
||
paddings: 10
|
||
Layout.topMargin: 20
|
||
|
||
Column{
|
||
spacing: 15
|
||
anchors{
|
||
verticalCenter: parent.verticalCenter
|
||
left: parent.left
|
||
}
|
||
FluText{
|
||
text:"页面跳转,不携带任何参数"
|
||
}
|
||
FluButton{
|
||
text:"点击跳转"
|
||
onClicked: {
|
||
FluApp.navigate("/about")
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
FluArea{
|
||
Layout.fillWidth: true
|
||
height: 130
|
||
paddings: 10
|
||
Layout.topMargin: 20
|
||
|
||
Column{
|
||
spacing: 15
|
||
anchors{
|
||
verticalCenter: parent.verticalCenter
|
||
left: parent.left
|
||
}
|
||
FluText{
|
||
text:"页面跳转,并携带参数用户名:zhuzichu"
|
||
}
|
||
FluButton{
|
||
text:"点击跳转到登录"
|
||
onClicked: {
|
||
loginPageRegister.launch({username:"zhuzichu"})
|
||
}
|
||
}
|
||
|
||
FluText{
|
||
text:"登录窗口返回过来的密码->"+password
|
||
}
|
||
}
|
||
}
|
||
|
||
}
|