add hint & text alignment

This commit is contained in:
王劲鹏 2021-05-26 11:36:11 +08:00 committed by osborn
parent 1892db80ec
commit 08d767bed0

View File

@ -18,5 +18,11 @@ QQuickItem *DoricInputNode::build() {
}
void DoricInputNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
{ DoricViewNode::blend(view, name, prop); }
if (name == "hintText") {
view->setProperty("placeholderText", prop.toString());
} else if (name == "textAlignment") {
view->setProperty("textAlignment", prop.toInt());
} else {
DoricViewNode::blend(view, name, prop);
}
}