Compare commits

..

No commits in common. "691012903a4c32392c90d51237c952deba6c1e23" and "8bd68cb3ec8612f36ccdae5a9d6cfa8a3d1a5521" have entirely different histories.

4 changed files with 21 additions and 49 deletions

View File

@ -101,8 +101,9 @@ FluWindow {
Connections {
target: SignalFileOperation
function onOpen(file) {
stack_view.clear()
stack_view.push(file_view, {knowledgeFileId: file})
stack_view.push(file_view, {
"knowledgeFileId": file
})
}
function onOpenNote(note) {
stack_view.push(note_view, {

View File

@ -131,8 +131,12 @@ FluArea {
console.log(content_area.type)
}
FluText {
font.pointSize: 12
FluIconButton {
iconSize: 12
iconSource: FluentIcons.Back
onClicked: {
emit: SignalFileOperation.back()
}
Layout.margins: -5
}

View File

@ -18,12 +18,6 @@ FluArea {
property string noteTitle
property string noteContent
Component.onCompleted: {
noteTitle = Qt.binding(function() {
return input_title.text
})
}
FluScrollablePage {
id: edit_page
anchors.fill: parent
@ -31,15 +25,13 @@ FluArea {
topPadding: 5
rightPadding: 5
bottomPadding: 0
RowLayout {
FluIconButton {
iconSize: 12
iconSource: FluentIcons.Back
onClicked: {
emit: SignalFileOperation.back()
}
Layout.margins: -5
FluIconButton {
iconSize: 12
iconSource: FluentIcons.Back
onClicked: {
emit: SignalFileOperation.back()
}
Layout.margins: -5
}
Item {
Layout.fillWidth: true
@ -55,42 +47,18 @@ FluArea {
}
}
FluTextBox {
id: input_title
padding: 10
placeholderText:"单行输入框"
implicitWidth: parent.width
}
}
}
Item {
Layout.fillWidth: true
implicitHeight: parent.height
Layout.fillWidth: true
NoteEditPage {
FluText {
padding: 10
text: "内容"
font {
pointSize: 15
bold: true
}
}
NoteEditPage {
id: text_view
noteId: "255454"
width: parent.width
height: width*9/16
}
RowLayout {
Layout.alignment: Qt.AlignCenter
Layout.topMargin: 10
FluFilledButton {
text: "上传"
onClicked: {
console.log(noteTitle)
}
}
FluButton {
text: "取消"
}
}
}

View File

@ -11,7 +11,6 @@ FluArea {
paddings: 0
backgroundColor: "#f9f9f9"
property string noteId: "234"
Layout.fillWidth: true
FluScrollablePage {
id: edit_page
@ -154,7 +153,7 @@ FluArea {
property bool isPreviewShowing: true
Layout.fillWidth: true
implicitHeight: width * 8/16
implicitHeight: 300
ScrollView {
id: edit_show_view