panel to flex, text stack wrap with flex

This commit is contained in:
王劲鹏
2021-03-04 17:44:54 +08:00
committed by osborn
parent 692397be2e
commit 6c8c3d69bc
10 changed files with 33 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ QQuickItem *DoricTextNode::build() {
void DoricTextNode::blend(QQuickItem *view, QString name, QJSValue prop) {
if (name == "text") {
view->setProperty("text", prop.toString());
view->childItems().at(0)->setProperty("text", prop.toString());
} else {
DoricViewNode::blend(view, name, prop);
}

View File

@@ -15,8 +15,22 @@ void DoricViewNode::blendLayoutConfig(QJSValue jsObject) {
qCritical() << 1;
break;
case 2:
qCritical() << 2;
break;
default:
qCritical() << "default";
break;
}
}
if (heightSpec.isNumber()) {
switch (heightSpec.toInt()) {
case 1:
qCritical() << 1;
break;
case 2:
qCritical() << 2;
break;
default:
qCritical() << "default";
break;