SmartLockerTools/Analyser/qml/OperationItem.qml
luocai 2661f0729a
All checks were successful
Build Applications / PullDocker (push) Successful in 7s
Build Applications / Build (push) Successful in 2m26s
Windows CI / build (push) Successful in 3m41s
optimize communicate stop.
2024-10-25 17:18:09 +08:00

56 lines
1.3 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Analyser
Item {
id: root
ColumnLayout {
anchors.fill: parent
ConnectionItem {}
Column {
Text{
width: 50
text: "烧录版本: "+ (App.module!==null? App.module.verison:"")
}
Text{
width: 50
text: "OTA版本: "+(App.module!==null?App.module.otaVerison:"")
}
}
TabBar {
id: operationBar
Layout.fillWidth: true
TabButton {
text: "注册/识别"
}
TabButton {
text: "删除/其它"
}
}
StackLayout {
currentIndex: operationBar.currentIndex
EnrollVerifyOperations {
enabled: App.connected
}
ExtendedOperations {
}
}
}
Loader {
id: loader
source: "OtaPage.qml"
active: false
onLoaded: {
if (loader.item && loader.item.open) {
loader.item.open()
loader.item.onClose = () => {
loader.active = false
}
}
}
}
}