main
朱子楚\zhuzi 2023-04-08 20:44:27 +08:00
parent d2183e350e
commit 0000e557a7
3 changed files with 15 additions and 13 deletions

View File

@ -52,12 +52,12 @@ FluScrollablePage{
}
CodeExpander{
Layout.fillWidth: true
code:' showInfo("这是一个Info样式的InfoBar")
code:'showInfo("这是一个Info样式的InfoBar")
showWarning("这是一个Warning样式的InfoBar")
showWarning("这是一个Warning样式的InfoBar")
showError("这是一个Error样式的InfoBar")
showError("这是一个Error样式的InfoBar")
showSuccess("这是一个Success样式的InfoBar这是一个Success样式的InfoBar")'
showSuccess("这是一个Success样式的InfoBar这是一个Success样式的InfoBar")'
}
}

View File

@ -115,7 +115,9 @@ FluExpander{
"FluWindow",
"FluWindowResize",
"FluToggleButton",
"FluTableView"
"FluTableView",
"FluColors",
"FluTheme",
];
code = code.replace(/\n/g, "<br>");
code = code.replace(/ /g, "&nbsp;");

View File

@ -9,14 +9,6 @@ Item{
property bool shadow: true
default property alias contentItem: container.data
Rectangle{
id:container
width: control.width
height: control.height
opacity: 0
color:control.color
}
FluShadow{
anchors.fill: container
radius: control.radius[0]
@ -28,6 +20,14 @@ Item{
}
}
Rectangle{
id:container
width: control.width
height: control.height
opacity: 0
color:control.color
}
Canvas {
id: canvas
anchors.fill: parent