add input type & max length

This commit is contained in:
王劲鹏
2021-05-31 11:30:51 +08:00
committed by osborn
parent af1ef2a103
commit 1291bb17b1
2 changed files with 30 additions and 9 deletions

View File

@@ -42,6 +42,10 @@ void DoricInputNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
view->setProperty("rightPadding", prop["right"].toDouble());
view->setProperty("topPadding", prop["top"].toDouble());
view->setProperty("bottomPadding", prop["bottom"].toDouble());
} else if (name == "maxLength") {
view->setProperty("maximumLength", prop.toInt());
} else if (name == "inputType") {
view->setProperty("inputType", prop.toInt());
} else {
DoricViewNode::blend(view, name, prop);
}