fix visibility

This commit is contained in:
王劲鹏 2021-05-27 18:34:01 +08:00 committed by osborn
parent ad9b9054b0
commit eb5811dbb2

View File

@ -175,6 +175,7 @@ void DoricViewNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
getLayouts()->setPaddingBottom(prop["bottom"].toDouble());
} else if (name == "hidden") {
getLayouts()->setDisabled(prop.toBool());
mView->setVisible(!prop.toBool());
} else if (name == "border") {
qreal borderWidth = prop["width"].toDouble();
QString borderColor = DoricUtils::doricColor(prop["color"].toInt()).name();