add password prop handle
This commit is contained in:
parent
1291bb17b1
commit
9f721aa1c8
@ -89,6 +89,17 @@ TextField {
|
||||
}
|
||||
}
|
||||
|
||||
property var password: false
|
||||
onPasswordChanged: {
|
||||
if (password) {
|
||||
this.echoMode = TextInput.Password
|
||||
} else {
|
||||
this.echoMode = TextInput.Normal
|
||||
}
|
||||
}
|
||||
|
||||
passwordCharacter: "•"
|
||||
|
||||
property var borderWidth: 0
|
||||
onBorderWidthChanged: {
|
||||
bg.border.width = borderWidth
|
||||
|
@ -46,6 +46,8 @@ void DoricInputNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
|
||||
view->setProperty("maximumLength", prop.toInt());
|
||||
} else if (name == "inputType") {
|
||||
view->setProperty("inputType", prop.toInt());
|
||||
} else if (name == "password") {
|
||||
view->setProperty("password", prop.toBool());
|
||||
} else {
|
||||
DoricViewNode::blend(view, name, prop);
|
||||
}
|
||||
|
Reference in New Issue
Block a user