add maxLines

This commit is contained in:
王劲鹏 2021-05-26 11:35:48 +08:00 committed by osborn
parent 49e93564a7
commit 1892db80ec

View File

@ -46,6 +46,8 @@ void DoricTextNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
view->setProperty("font", QVariant(font));
} else if (name == "textAlignment") {
view->setProperty("textAlignment", prop.toInt());
} else if (name == "maxLines") {
view->setProperty("lineCount", prop.toInt());
} else if (name == "fontStyle") {
view->setProperty("fontStyle", prop.toString());
} else if (name == "shadow") {
@ -69,6 +71,8 @@ void DoricTextNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
view->setProperty("strikethrough", prop.toBool());
} else if (name == "underline") {
view->setProperty("underline", prop.toBool());
} else if (name == "lineSpacing") {
} else {
DoricViewNode::blend(view, name, prop);
}