AicsKnowledgeBase_client/AicsKnowledgeBase/qml/global/NavItems.qml

54 lines
1.1 KiB
QML

pragma Singleton
import QtQuick
import FluentUI
FluObject {
property var navigationView
FluPaneItem {
title: "探索"
icon: FluentIcons.Home
onTap: {
navigationView.push("qrc:/AicsKnowledgeBase/qml/page/HomePage.qml")
}
}
FluPaneItem {
title: "全部"
icon: FluentIcons.FileExplorer
onTap: {
navigationView.push("qrc:/AicsKnowledgeBase/qml/page/FilePage.qml")
}
}
FluPaneItem {
title: "文档"
icon: FluentIcons.Document
onTap: {
navigationView.push("qrc:/AicsKnowledgeBase/qml/page/DocumentPage.qml")
}
}
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")
}
}
function startPageByItem(data) {
navigationView.startPageByItem(data)
}
}