AicsKnowledgeBase_client/AicsKnowledgeBase/qml/global/NavItems.qml

56 lines
1.2 KiB
QML
Raw Permalink Normal View History

2023-06-21 21:33:52 +08:00
pragma Singleton
import QtQuick
import FluentUI
FluObject {
property var navigationView
FluPaneItem {
title: "全部"
icon: FluentIcons.FileExplorer
onTap: {
navigationView.push("qrc:/AicsKnowledgeBase/qml/page/FilePage.qml")
}
}
FluPaneItem {
title: "文档"
icon: FluentIcons.Document
onTap: {
2023-07-08 13:51:14 +08:00
navigationView.push(
"qrc:/AicsKnowledgeBase/qml/page/DocumentPage.qml")
2023-06-21 21:33:52 +08:00
}
}
FluPaneItem {
title: "视频"
icon: FluentIcons.Movies
onTap: {
navigationView.push("qrc:/AicsKnowledgeBase/qml/page/VideoPage.qml")
}
}
FluPaneItem {
title: "音频"
icon: FluentIcons.Audio
onTap: {
navigationView.push("qrc:/AicsKnowledgeBase/qml/page/AudioPage.qml")
}
}
2023-06-30 18:37:17 +08:00
FluPaneItem {
title: "搜索"
icon: FluentIcons.Search
onTap: {
2023-07-08 13:51:14 +08:00
navigationView.push(
"qrc:/AicsKnowledgeBase/qml/page/SearchPage.qml")
2023-06-30 18:37:17 +08:00
}
}
2023-06-21 21:33:52 +08:00
function startPageByItem(data) {
navigationView.startPageByItem(data)
}
}