add FluPasswordBox

This commit is contained in:
zhuzihcu
2023-04-20 14:56:09 +08:00
parent b3d1568de4
commit 3ec0841b44
6 changed files with 165 additions and 2 deletions

View File

@ -51,6 +51,44 @@ FluScrollablePage{
}'
}
FluArea{
Layout.fillWidth: true
height: 68
paddings: 10
Layout.topMargin: 20
FluPasswordBox{
Layout.topMargin: 20
placeholderText: "请输入密码"
Layout.preferredWidth: 300
disabled:password_box_switch.selected
anchors{
verticalCenter: parent.verticalCenter
left: parent.left
}
}
Row{
spacing: 5
anchors{
verticalCenter: parent.verticalCenter
right: parent.right
}
FluToggleSwitch{
id:password_box_switch
Layout.alignment: Qt.AlignRight
text:"Disabled"
}
}
}
CodeExpander{
Layout.fillWidth: true
Layout.topMargin: -1
code:'FluPasswordBox{
placeholderText:"请输入密码"
}'
}
FluArea{
Layout.fillWidth: true

View File

@ -118,7 +118,8 @@ FluExpander{
"FluColors",
"FluTheme",
"FluStatusView",
"FluRatingControl"
"FluRatingControl",
"FluPasswordBox"
];
code = code.replace(/\n/g, "<br>");
code = code.replace(/ /g, "&nbsp;");