2023-06-30 18:37:17 +08:00
|
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Window
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import QtQuick.Controls.Basic
|
|
|
|
|
import FluentUI
|
2023-07-03 10:38:59 +08:00
|
|
|
|
import "qrc:///AicsKnowledgeBase/qml/component"
|
2023-06-30 18:37:17 +08:00
|
|
|
|
|
|
|
|
|
FluArea {
|
|
|
|
|
property string url: ''
|
2023-07-02 15:58:02 +08:00
|
|
|
|
backgroundColor: "#f9f9f9"
|
2023-06-30 18:37:17 +08:00
|
|
|
|
Layout.fillHeight: true
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.topMargin: 20
|
|
|
|
|
paddings: 10
|
|
|
|
|
|
2023-07-03 10:38:59 +08:00
|
|
|
|
// FluText {
|
|
|
|
|
// Layout.topMargin: 20
|
|
|
|
|
// text: "Search"
|
|
|
|
|
// }
|
|
|
|
|
/*
|
|
|
|
|
按标题,内容搜索
|
|
|
|
|
*/
|
|
|
|
|
ColumnLayout{
|
|
|
|
|
|
|
|
|
|
RowLayout{
|
|
|
|
|
width:parent.width
|
|
|
|
|
FluDropDownButton{
|
|
|
|
|
id:select_model
|
|
|
|
|
Layout.alignment: Qt.AlignLeft
|
|
|
|
|
text:"标题"
|
|
|
|
|
items:[
|
|
|
|
|
FluMenuItem{
|
|
|
|
|
text:"标题"
|
|
|
|
|
onClicked: {
|
|
|
|
|
select_model.text = text
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
FluMenuItem{
|
|
|
|
|
text:"内容"
|
|
|
|
|
onClicked: {
|
|
|
|
|
select_model.text = text
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
FluMenuItem{
|
|
|
|
|
text:"标签"
|
|
|
|
|
onClicked: {
|
|
|
|
|
select_model.text = text
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FluTextBox{
|
|
|
|
|
//placeholderText:""
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
FluIconButton{
|
|
|
|
|
Layout.alignment: Qt.AlignRight
|
|
|
|
|
iconSource:FluentIcons.Search
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//按文件类型
|
|
|
|
|
RowLayout{
|
|
|
|
|
width:parent.width
|
|
|
|
|
FluText{
|
|
|
|
|
Layout.alignment: Qt.AlignLeft
|
|
|
|
|
text:"格式: "
|
|
|
|
|
}
|
|
|
|
|
FluCheckBox{
|
|
|
|
|
id:selectAllFormat
|
|
|
|
|
text:"all"
|
|
|
|
|
Component.onCompleted:{
|
|
|
|
|
clicked()
|
|
|
|
|
}
|
|
|
|
|
onClicked:{
|
|
|
|
|
selectPDFAndWord.checked=true
|
|
|
|
|
selectVideo.checked=true
|
|
|
|
|
selectPPT.checked=true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
FluCheckBox{
|
|
|
|
|
id:selectPDFAndWord
|
|
|
|
|
text:"pdf/word"
|
|
|
|
|
//wrapMode: Text.WordWrap
|
|
|
|
|
onClicked:{
|
|
|
|
|
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
FluCheckBox{
|
|
|
|
|
id:selectPPT
|
|
|
|
|
text:"ppt"
|
|
|
|
|
onClicked:{
|
|
|
|
|
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FluCheckBox{
|
|
|
|
|
id:selectVideo
|
|
|
|
|
text:"video"
|
|
|
|
|
onClicked:{
|
|
|
|
|
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rectangle{
|
|
|
|
|
FileList{
|
|
|
|
|
Button{
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
background: Rectangle{
|
|
|
|
|
color: Qt.red
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// anchors.top: tags.anchors.bottom
|
|
|
|
|
// anchors.bottom: parent.anchors.bottom
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2023-06-30 18:37:17 +08:00
|
|
|
|
}
|