FluentUI/Gallery/res/qml/component/LeftResource.qml
yxdy aa9180d289
Some checks failed
Gallery App Build / Windows (push) Has been cancelled
Gallery App Build / macOS (push) Has been cancelled
Gallery App Build / Ubuntu (push) Has been cancelled
fix: 修改样式
2025-02-19 09:20:59 +08:00

142 lines
3.8 KiB
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import FluentUI.Controls
import FluentUI.impl
import Gallery
ColumnLayout {
id: control
signal clickResource(var name)
ColumnLayout{
Layout.fillHeight: true
Layout.fillWidth: true
spacing: 10
Rectangle{
Layout.preferredWidth: 200
Layout.preferredHeight: 50
color: "transparent"
border.color: "#ffffff"
border.width: 2
RowLayout{
anchors.fill: parent
Label{
Layout.leftMargin: 10
Layout.fillWidth: true
text: "新疆煤炭资源(156个)"
font.pointSize: 10
}
Button{
text: "加载"
Layout.rightMargin: 10
onClicked: {
control.clickResource({type: "meitan", title: "新疆煤炭资源"})
}
}
}
// MouseArea{
// anchors.fill: parent
// hoverEnabled: true
// onEntered: parent.color = "#292929"
// onExited: parent.color = "transparent"
// }
}
Rectangle{
Layout.preferredWidth: 200
Layout.preferredHeight: 50
color: "transparent"
border.color: "#ffffff"
border.width: 2
RowLayout{
anchors.fill: parent
Label{
Layout.leftMargin: 10
Layout.fillWidth: true
text: "G7高速周边充电站(15个)"
font.pointSize: 10
}
Button{
text: "加载"
Layout.rightMargin: 10
}
}
MouseArea{
anchors.fill: parent
hoverEnabled: true
onEntered: parent.color = "#292929"
onExited: parent.color = "transparent"
}
}
Rectangle{
Layout.preferredWidth: 200
Layout.preferredHeight: 50
color: "transparent"
border.color: "#ffffff"
border.width: 2
RowLayout{
anchors.fill: parent
Label{
Layout.leftMargin: 10
Layout.fillWidth: true
text: "全国陆港分布(15个)"
font.pointSize: 10
}
Button{
text: "加载"
Layout.rightMargin: 10
onClicked: {
control.clickResource({type: "lugang", title: "全国陆港分布"})
}
}
}
}
Rectangle{
Layout.preferredWidth: 200
Layout.preferredHeight: 50
color: "transparent"
border.color: "#ffffff"
border.width: 2
RowLayout{
anchors.fill: parent
Label{
Layout.leftMargin: 10
Layout.fillWidth: true
text: "包头市倾斜摄影数据"
font.pointSize: 10
}
Button{
text: "加载"
Layout.rightMargin: 10
}
}
MouseArea{
anchors.fill: parent
hoverEnabled: true
onEntered: parent.color = "#292929"
onExited: parent.color = "transparent"
}
}
}
}