mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
108 lines
2.2 KiB
QML
108 lines
2.2 KiB
QML
import QtQuick
|
||
import QtQuick.Layouts
|
||
import QtQuick.Window
|
||
import QtQuick.Controls
|
||
import FluentUI
|
||
import "./component"
|
||
|
||
FluScrollablePage{
|
||
|
||
property string password: ""
|
||
property var loginPageRegister: registerForPageResult("/login")
|
||
|
||
title:"MultiWindow"
|
||
leftPadding:10
|
||
rightPadding:10
|
||
bottomPadding:20
|
||
spacing: 0
|
||
|
||
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")
|
||
}
|
||
}
|
||
}
|
||
}
|
||
CodeExpander{
|
||
Layout.fillWidth: true
|
||
code:'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
|
||
}
|
||
}
|
||
}
|
||
CodeExpander{
|
||
Layout.fillWidth: true
|
||
code:'property var loginPageRegister: registerForPageResult("/login")
|
||
|
||
Connections{
|
||
target: loginPageRegister
|
||
function onResult(data)
|
||
{
|
||
password = data.password
|
||
}
|
||
}
|
||
|
||
FluButton{
|
||
text:"点击跳转"
|
||
onClicked: {
|
||
loginPageRegister.launch({username:"zhuzichu"})
|
||
}
|
||
}
|
||
'
|
||
}
|
||
|
||
}
|