support image res

This commit is contained in:
王劲鹏 2021-05-19 11:46:52 +08:00 committed by osborn
parent e09e24f71f
commit 13c33adedd

View File

@ -43,6 +43,9 @@ void DoricImageNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
} else if (name == "imageBase64") {
container->setProperty("fillMode", this->contentMode);
container->setProperty("source", prop.toString());
} else if (name == "imageRes") {
container->setProperty("fillMode", this->contentMode);
container->setProperty("source", prop.toString());
} else if (name == "isBlur") {
if (prop.toBool()) {
container->setProperty("isBlur", prop.toBool());