2023-05-22 16:17:51 +08:00
|
|
|
import QtQuick
|
2023-03-30 21:52:55 +08:00
|
|
|
import QtQuick.Layouts
|
|
|
|
import QtQuick.Window
|
|
|
|
import QtQuick.Controls
|
|
|
|
import FluentUI
|
2023-04-22 16:02:52 +08:00
|
|
|
import "../component"
|
2023-02-28 18:29:00 +08:00
|
|
|
|
2023-03-10 18:08:32 +08:00
|
|
|
FluScrollablePage{
|
2023-03-28 17:53:46 +08:00
|
|
|
|
2023-03-10 18:08:32 +08:00
|
|
|
title:"InfoBar"
|
|
|
|
|
2023-04-06 17:32:21 +08:00
|
|
|
FluArea{
|
|
|
|
Layout.fillWidth: true
|
2023-03-10 18:08:32 +08:00
|
|
|
Layout.topMargin: 20
|
2023-04-06 17:32:21 +08:00
|
|
|
height: 200
|
|
|
|
paddings: 10
|
|
|
|
ColumnLayout{
|
|
|
|
spacing: 14
|
|
|
|
anchors{
|
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
|
left: parent.left
|
|
|
|
}
|
|
|
|
FluButton{
|
|
|
|
text:"Info"
|
|
|
|
onClicked: {
|
|
|
|
showInfo("这是一个Info样式的InfoBar")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
FluButton{
|
|
|
|
text:"Warning"
|
|
|
|
onClicked: {
|
|
|
|
showWarning("这是一个Warning样式的InfoBar")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
FluButton{
|
|
|
|
text:"Error"
|
|
|
|
onClicked: {
|
|
|
|
showError("这是一个Error样式的InfoBar")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
FluButton{
|
|
|
|
text:"Success"
|
|
|
|
onClicked: {
|
|
|
|
showSuccess("这是一个Success样式的InfoBar这是一个Success样式的InfoBar")
|
|
|
|
}
|
|
|
|
}
|
2023-03-10 18:08:32 +08:00
|
|
|
}
|
2023-03-06 18:08:01 +08:00
|
|
|
}
|
2023-04-06 17:32:21 +08:00
|
|
|
CodeExpander{
|
|
|
|
Layout.fillWidth: true
|
2023-04-19 17:25:46 +08:00
|
|
|
Layout.topMargin: -1
|
2023-04-08 20:44:27 +08:00
|
|
|
code:'showInfo("这是一个Info样式的InfoBar")
|
2023-04-06 17:32:21 +08:00
|
|
|
|
2023-04-08 20:44:27 +08:00
|
|
|
showWarning("这是一个Warning样式的InfoBar")
|
2023-04-06 17:32:21 +08:00
|
|
|
|
2023-04-08 20:44:27 +08:00
|
|
|
showError("这是一个Error样式的InfoBar")
|
2023-04-06 17:32:21 +08:00
|
|
|
|
2023-04-08 20:44:27 +08:00
|
|
|
showSuccess("这是一个Success样式的InfoBar这是一个Success样式的InfoBar")'
|
2023-02-28 18:29:00 +08:00
|
|
|
}
|
|
|
|
}
|