37 lines
838 B
QML
37 lines
838 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls
|
|
import FluentUI.Controls
|
|
import FluentUI.impl
|
|
|
|
RowLayout{
|
|
id: control
|
|
property var models
|
|
property var cur: "1"
|
|
|
|
Repeater {
|
|
model: control.models
|
|
Item{
|
|
Layout.fillWidth: true
|
|
RowLayout{
|
|
RadioButton {
|
|
text: model.title
|
|
checked: model.uuid == cur
|
|
FluentUI.primaryColor: "#77ED8B"
|
|
onClicked: {
|
|
control.cur = model.uuid
|
|
}
|
|
}
|
|
Image{
|
|
source: model.icon
|
|
Layout.preferredHeight: 15
|
|
Layout.preferredWidth: 15
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|