2023-03-30 21:52:55 +08:00
|
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Window
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import FluentUI
|
2023-04-06 17:32:21 +08:00
|
|
|
|
import "./component"
|
2023-03-20 21:28:12 +08:00
|
|
|
|
|
|
|
|
|
FluScrollablePage{
|
|
|
|
|
|
|
|
|
|
title:"Badge"
|
|
|
|
|
|
2023-03-28 17:53:46 +08:00
|
|
|
|
leftPadding:10
|
|
|
|
|
rightPadding:10
|
|
|
|
|
bottomPadding:20
|
2023-04-06 17:32:21 +08:00
|
|
|
|
spacing: 0
|
2023-03-20 21:28:12 +08:00
|
|
|
|
|
|
|
|
|
FluArea{
|
2023-04-03 09:32:06 +08:00
|
|
|
|
Layout.fillWidth: true
|
2023-03-20 21:28:12 +08:00
|
|
|
|
Layout.topMargin: 20
|
|
|
|
|
height: 106
|
|
|
|
|
paddings: 10
|
|
|
|
|
|
|
|
|
|
Column{
|
|
|
|
|
spacing: 15
|
|
|
|
|
anchors{
|
|
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
|
|
left: parent.left
|
|
|
|
|
}
|
|
|
|
|
FluText{
|
|
|
|
|
text:"一般出现在通知图标或头像的右上角,用于显示需要处理的消息条数"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Row{
|
|
|
|
|
spacing: 20
|
|
|
|
|
Rectangle{
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
radius: 8
|
|
|
|
|
color: Qt.rgba(191/255,191/255,191/255,1)
|
|
|
|
|
FluBadge{
|
|
|
|
|
count:0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Rectangle{
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
radius: 8
|
|
|
|
|
color: Qt.rgba(191/255,191/255,191/255,1)
|
|
|
|
|
FluBadge{
|
|
|
|
|
count:5
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Rectangle{
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
radius: 8
|
|
|
|
|
color: Qt.rgba(191/255,191/255,191/255,1)
|
|
|
|
|
FluBadge{
|
|
|
|
|
count:50
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Rectangle{
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
radius: 8
|
|
|
|
|
color: Qt.rgba(191/255,191/255,191/255,1)
|
|
|
|
|
FluBadge{
|
|
|
|
|
count:100
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Rectangle{
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
radius: 8
|
|
|
|
|
color: Qt.rgba(191/255,191/255,191/255,1)
|
|
|
|
|
FluBadge{
|
|
|
|
|
isDot:true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Rectangle{
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
radius: 8
|
|
|
|
|
color: Qt.rgba(191/255,191/255,191/255,1)
|
|
|
|
|
FluBadge{
|
|
|
|
|
count:99
|
|
|
|
|
color: Qt.rgba(250/255,173/255,20/255,1)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Rectangle{
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
radius: 8
|
|
|
|
|
color: Qt.rgba(191/255,191/255,191/255,1)
|
|
|
|
|
FluBadge{
|
|
|
|
|
count:99
|
|
|
|
|
color: Qt.rgba(82/255,196/255,26/255,1)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-04-06 17:32:21 +08:00
|
|
|
|
CodeExpander{
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
code:'Rectangle{
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
radius: 8
|
|
|
|
|
color: Qt.rgba(191/255,191/255,191/255,1)
|
|
|
|
|
FluBadge{
|
|
|
|
|
count: 100
|
|
|
|
|
isDot: false
|
|
|
|
|
color: Qt.rgba(82/255,196/255,26/255,1)
|
|
|
|
|
}
|
|
|
|
|
}'
|
|
|
|
|
}
|
2023-03-20 21:28:12 +08:00
|
|
|
|
|
|
|
|
|
}
|