修改FileList

main
wuyize 2023-07-07 03:10:40 +08:00
parent 26b9016a45
commit 234c24e9f0
10 changed files with 18 additions and 18 deletions

View File

@ -126,9 +126,15 @@ Item {
return "OTHER"
}
RowLayout {
Layout.preferredWidth: parent.width
Layout.alignment: Qt.AlignRight
//Layout.preferredWidth: parent.width
layoutDirection: Qt.RightToLeft
UploadButton {
//Layout.alignment: Qt.AlignRight
header: header
}
Item {
anchors.right: uploadBtn.left
//anchors.right: uploadBtn.left
height: 28
width: 28
InputDialog {
@ -153,20 +159,14 @@ Item {
}
}
Image {
source: "qrc:/AicsKnowledgeBase/res/createFolder.png"
anchors.fill: parent
}
MouseArea {
FluIconButton {
anchors.fill: parent
iconSource: FluentIcons.NewFolder
onClicked: {
dialog.open()
}
}
}
UploadButton {
Layout.alignment: Qt.AlignRight
}
}
RowLayout {
id: fileListItemHeaderItem

View File

@ -108,6 +108,7 @@ FluArea {
source: type ? "qrc:/AicsKnowledgeBase/res/" + type + ".png" : ""
Layout.preferredHeight: 24
Layout.preferredWidth: 24
fillMode: Image.PreserveAspectFit
}
FluText {
id: title

View File

@ -10,12 +10,12 @@ FluButton {
property var header
property var currentSelectedFile: null
Layout.alignment: Qt.AlignRight
//Layout.alignment: Qt.AlignRight
text: "上传"
onClicked: function () {
console.log("click")
//fileDialog.open()
popup.open()
fileDialog.open()
//popup.open()
}
FileDialog {
id: fileDialog
@ -110,14 +110,13 @@ FluButton {
Layout.fillHeight: true
text: "上传"
onClicked: {
popup.close()
var tagIds = []
for (var i = 0; i < tags.tagList.count; i++) {
console.log(tags.tagList.get(i).tag)
console.log(tags.tagList.get(i).id)
tagIds.push(tags.tagList.get(i).id)
}
return
popup.close()
let name = FileTransferManager.getFileName(
currentSelectedFile)
const size = FileTransferManager.getFileSize(
@ -131,7 +130,7 @@ FluButton {
"brief": brief_textbox.text,
"size": size,
"md5": md5,
"tags": [],
"tags": tagIds,
"parentId": currentParentId()
}
console.log("begin")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB