TG-PlatformPlus/qml/debug/hsvp/SettingView.qml

56 lines
1.5 KiB
QML
Raw Permalink Normal View History

2026-03-02 14:29:58 +08:00
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import "./common"
// import "./Style"
Rectangle {
id: self
radius: 9
Item {
id: bar
width: parent.width
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.leftMargin: 39
anchors.rightMargin: 14
height: 65
property var currentIndex: 1
Row{
spacing: 46
QxTabButton {
text: qsTr("基本信息")
isSelected: bar.currentIndex == 0
textColor: isSelected ? "#007EFF" : "#262626"
onClicked: bar.currentIndex = 0
}
QxTabButton {
text: qsTr("功能参数")
isSelected: bar.currentIndex == 1
textColor: isSelected ? "#007EFF" : "#262626"
onClicked: bar.currentIndex = 1
}
}
Rectangle{
id: line
width: parent.width
height: 1
color: "#E6E6E6"
anchors.top: bar.bottom
}
}
StackLayout {
id: layout
anchors.top: bar.bottom
anchors.topMargin: 34
anchors.left: parent.left
anchors.leftMargin: 39
anchors.right: parent.right
anchors.rightMargin: 37
anchors.bottom: parent.bottom
anchors.bottomMargin: 21
currentIndex: bar.currentIndex
SettingTestInfo {}
SettingSystem{}
}
}