diff --git a/AicsKnowledgeBase/qml/MainWindow.qml b/AicsKnowledgeBase/qml/MainWindow.qml index 3387f6a..d4cfa26 100644 --- a/AicsKnowledgeBase/qml/MainWindow.qml +++ b/AicsKnowledgeBase/qml/MainWindow.qml @@ -62,30 +62,9 @@ FluWindow { Layout.topMargin: 45 Layout.bottomMargin: 4 Layout.rightMargin: 4 - replaceEnter: Transition { - PropertyAnimation { - target: stack_view - property: "opacity" - from: 0 - to: 1 - duration:700 - easing.type: Easing.InOutElastic; - easing.amplitude: 2.0; - easing.period: 1.5 - } - } - replaceExit: Transition { - PropertyAnimation { - target: stack_view - property: "opacity" - from: 1 - to: 0 - duration:500 - easing.type: Easing.InOutElastic; - easing.amplitude: 2.0; - easing.period: 1.5 - } - } + replaceEnter: null + replaceExit: null + initialItem: create_note_view } Connections { @@ -116,6 +95,13 @@ FluWindow { } } + Component { + id: create_note_view + CreateNotePage { + + } + } + // ContentPage { // Layout.fillHeight: true diff --git a/AicsKnowledgeBase/qml/page/CreateNotePage.qml b/AicsKnowledgeBase/qml/page/CreateNotePage.qml index a6583fe..1d1dbaa 100644 --- a/AicsKnowledgeBase/qml/page/CreateNotePage.qml +++ b/AicsKnowledgeBase/qml/page/CreateNotePage.qml @@ -7,4 +7,59 @@ import QtWebEngine 1.2 import FluentUI import AicsKB.FileTransferManager import SignalFileOperation 1.0 +import "qrc:///AicsKnowledgeBase/qml/page" +import "qrc:///AicsKnowledgeBase/qml/component" +import "qrc:///AicsKnowledgeBase/qml/global" +FluArea { + id: edit_area + paddings: 0 + backgroundColor: "#f9f9f9" + property string noteTitle + property string noteContent + + FluScrollablePage { + id: edit_page + anchors.fill: parent + leftPadding: 5 + topPadding: 5 + rightPadding: 5 + bottomPadding: 0 + FluIconButton { + iconSize: 12 + iconSource: FluentIcons.Back + onClicked: { + emit: SignalFileOperation.back() + } + Layout.margins: -5 + } + Item { + Layout.fillWidth: true + implicitHeight: 50 + RowLayout { + Layout.fillWidth: true + FluText { + padding: 10 + text: "标题" + font { + pointSize: 15 + bold: true + } + } + FluTextBox { + padding: 10 + placeholderText:"单行输入框" + implicitWidth: parent.width + } + } + } + Item { + Layout.fillWidth: true + implicitHeight: parent.height + Layout.fillWidth: true + NoteEditPage { + + } + } + } +} diff --git a/AicsKnowledgeBase/qml/page/NotePage.qml b/AicsKnowledgeBase/qml/page/NotePage.qml index d2ba860..c102326 100644 --- a/AicsKnowledgeBase/qml/page/NotePage.qml +++ b/AicsKnowledgeBase/qml/page/NotePage.qml @@ -58,7 +58,7 @@ FluArea { else return "OTHER" } - function loadFile(noteFileId) { + function loadNote(noteFileId) { note_area.noteFileId = noteFileId }