AicsKnowledgeBase_client/AicsKnowledgeBase/qml/page/SearchPage.qml

143 lines
3.4 KiB
QML
Raw Normal View History

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
// FluText {
// Layout.topMargin: 20
// text: "Search"
// }
2023-07-03 10:38:59 +08:00
/*
*/
ColumnLayout{
2023-07-05 01:59:35 +08:00
width: parent.width
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
}
}
]
}
2023-07-03 10:38:59 +08:00
FluTextBox{
//placeholderText:""
Layout.fillWidth: true
2023-07-03 10:38:59 +08:00
}
FluIconButton{
Layout.alignment: Qt.AlignRight
iconSource:FluentIcons.Search
}
}
2023-07-04 12:40:04 +08:00
//按文件类型
RowLayout{
2023-07-04 12:40:04 +08:00
id:selectFormat
width:parent.width
FluText{
Layout.alignment: Qt.AlignLeft
2023-07-04 12:40:04 +08:00
text:"类型: "
}
FluCheckBox{
id:selectAllFormat
text:"all"
Component.onCompleted:{
clicked()
}
onClicked:{
selectVideo.checked=true
selectDoc.checked=true
selectAudio.checked=true
}
}
FluCheckBox{
id:selectVideo
2023-07-04 12:40:04 +08:00
text:"Video"
onClicked:{
2023-07-04 12:40:04 +08:00
selectFormat.setAllStatus()
}
}
FluCheckBox{
id:selectDoc
2023-07-04 12:40:04 +08:00
text:"Doc"
onClicked:{
2023-07-04 12:40:04 +08:00
selectFormat.setAllStatus()
}
}
2023-07-03 10:38:59 +08:00
FluCheckBox{
id:selectAudio
2023-07-04 12:40:04 +08:00
text:"Audio"
onClicked:{
2023-07-05 01:59:35 +08:00
selectFormat.setAllStatus()
}
}
2023-07-04 12:40:04 +08:00
function setAllStatus() {
selectAllFormat.checked = selectVideo.checked && selectDoc.checked && selectAudio.checked
2023-07-04 12:40:04 +08:00
}
}
2023-07-03 10:38:59 +08:00
2023-07-05 01:59:35 +08:00
RowLayout{
width:parent.width
height: 32
FluText{
id: tag
Layout.alignment: Qt.AlignLeft
text:"标签: "
}
Tag{
width: 290
}
}
2023-07-03 10:38:59 +08:00
FluArea{
backgroundColor: "#f9f9f9"
border.width: 0
width: parent.width
height: 500
2023-07-03 10:38:59 +08:00
FileList{
disableHeader: true
}
}
}
2023-06-30 18:37:17 +08:00
}