diff --git a/doric-Qt/example/doric/shader/DoricViewNode.cpp b/doric-Qt/example/doric/shader/DoricViewNode.cpp index 8856070a..6182edda 100644 --- a/doric-Qt/example/doric/shader/DoricViewNode.cpp +++ b/doric-Qt/example/doric/shader/DoricViewNode.cpp @@ -189,7 +189,8 @@ void DoricViewNode::blend(QQuickItem *view, QString name, QJsonValue prop) { view->setProperty("shadowOffsetY", prop["offsetY"].toDouble()); view->setProperty("shadowOpacity", prop["opacity"].toDouble()); } else if (name != "layoutConfig") { - qCritical() << mType << " unhandled prop: " << name << ": " << prop.toString(); + qCritical() << mType << " unhandled prop: " << name << ": " + << prop.toString(); } } @@ -238,6 +239,7 @@ DoricViewNode::pureCallJSResponse(QString funcId, QVariantList args) { void DoricViewNode::onClick() { if (clickFunction.isEmpty()) { + mSuperNode->onClick(); return; } QVariantList args; diff --git a/doric-Qt/example/doric/shader/slider/DoricSliderNode.cpp b/doric-Qt/example/doric/shader/slider/DoricSliderNode.cpp index de07f779..93901f9f 100644 --- a/doric-Qt/example/doric/shader/slider/DoricSliderNode.cpp +++ b/doric-Qt/example/doric/shader/slider/DoricSliderNode.cpp @@ -50,7 +50,7 @@ void DoricSliderNode::blend(QQuickItem *view, QString name, QJsonValue prop) { } else if (name == "loop") { this->loop = prop.toBool(); } else { - DoricViewNode::blend(view, name, prop); + DoricSuperNode::blend(view, name, prop); } } @@ -81,8 +81,5 @@ void DoricSliderNode::afterBlended(QJsonValue prop) { newNode->blend(model["props"]); } } - - int size = childNodes.size(); - qDebug() << size; } }