AicsKnowledgeBase_client/AicsKnowledgeBase/qml/page/FilePage.qml

44 lines
840 B
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Controls.Basic
import QtQuick.Dialogs
import FluentUI
import AicsKB.FileTransferManager
import "qrc:///AicsKnowledgeBase/qml/component"
FluArea {
property string url: ''
backgroundColor: "#f9f9f9"
Layout.fillWidth: true
Layout.fillHeight: true
paddings: 10
Layout.topMargin: 20
FluText {
Layout.topMargin: 20
text: ""
}
FluButton {
text: "上传"
onClicked: function () {
console.log("click")
fileDialog.open()
}
FileDialog {
id: fileDialog
onAccepted: function () {
FileTransferManager.upload(selectedFile)
}
}
}
FileList {
autoRequest: true
}
}