笔记创建的基本界面

main
yang.yongquan 2023-07-06 20:26:47 +08:00
parent 36250d9615
commit 604203047c
3 changed files with 66 additions and 25 deletions

View File

@ -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

View File

@ -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 {
}
}
}
}

View File

@ -58,7 +58,7 @@ FluArea {
else return "OTHER"
}
function loadFile(noteFileId) {
function loadNote(noteFileId) {
note_area.noteFileId = noteFileId
}