AicsKnowledgeBase_client/AicsKnowledgeBase/qml/page/FilePage.qml

42 lines
809 B
QML
Raw Normal View History

2023-06-21 21:33:52 +08:00
import QtQuick
import QtQuick.Layouts
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Controls.Basic
import QtQuick.Dialogs
2023-06-21 21:33:52 +08:00
import FluentUI
import AicsKB.FileTransferManager
2023-06-30 23:31:28 +08:00
import "qrc:///AicsKnowledgeBase/qml/component"
2023-06-21 21:33:52 +08:00
2023-07-01 08:56:14 +08:00
FluArea {
2023-06-21 21:33:52 +08:00
property string url: ''
2023-07-02 15:58:02 +08:00
backgroundColor: "#f9f9f9"
2023-06-21 21:33:52 +08:00
Layout.fillWidth: true
Layout.fillHeight: true
paddings: 10
Layout.topMargin: 20
2023-07-01 08:56:14 +08:00
FluText {
2023-06-21 21:33:52 +08:00
Layout.topMargin: 20
2023-07-01 08:56:14 +08:00
text: ""
2023-06-21 21:33:52 +08:00
}
2023-07-02 15:58:02 +08:00
FluButton {
text: "上传"
onClicked: function () {
console.log("click")
fileDialog.open()
}
FileDialog {
id: fileDialog
onAccepted: function () {
FileTransferManager.upload(selectedFile)
}
}
2023-07-02 15:58:02 +08:00
}
2023-07-01 08:56:14 +08:00
FileList {}
2023-06-21 21:33:52 +08:00
}