diff --git a/example/qml/component/CodeExpander.qml b/example/qml/component/CodeExpander.qml index 24003a9f..fe96d362 100644 --- a/example/qml/component/CodeExpander.qml +++ b/example/qml/component/CodeExpander.qml @@ -135,7 +135,9 @@ FluExpander{ "FluLoadingButton", "FluClip", "FluNetwork", - "FluShortcutPicker" + "FluShortcutPicker", + "FluWindowResultLauncher", + "FluRouter" ]; code = code.replace(/\n/g, "
"); code = code.replace(/ /g, " "); diff --git a/example/qml/page/T_MultiWindow.qml b/example/qml/page/T_MultiWindow.qml index ee98b72d..f5cabc54 100644 --- a/example/qml/page/T_MultiWindow.qml +++ b/example/qml/page/T_MultiWindow.qml @@ -165,20 +165,19 @@ FluScrollablePage{ CodeExpander{ Layout.fillWidth: true Layout.topMargin: -1 - code:'property var loginPageRegister: registerForWindowResult("/login") - -Connections{ - target: loginPageRegister - function onResult(data) - { - password = data.password - } + code:'FluWindowResultLauncher{ + id:loginResultLauncher + path: "/login" + onResult: + (data)=>{ + password = data.password + } } FluButton{ text: qsTr("Create Window") onClicked: { - loginPageRegister.launch({username:"zhuzichu"}) + loginResultLauncher.launch({username:"zhuzichu"}) } } ' diff --git a/example/qml/window/MainWindow.qml b/example/qml/window/MainWindow.qml index 76c27e2a..7cee4815 100644 --- a/example/qml/window/MainWindow.qml +++ b/example/qml/window/MainWindow.qml @@ -178,7 +178,7 @@ FluWindow { id:loader lazy: true anchors.fill: parent - source: "https://zhu-zichu.gitee.io/Qt_168_LieflatPage.qml" + source: "https://zhu-zichu.gitee.io/Qt_174_LieflatPage.qml" } } front: Item{