From 08a3e36a67c752f8e0f07383dce193cbbaeb43da Mon Sep 17 00:00:00 2001 From: "rorya.lyj" Date: Wed, 12 Aug 2020 21:05:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(rax-render):=20hidden=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/rax-render/src/engine/base.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/rax-render/src/engine/base.jsx b/packages/rax-render/src/engine/base.jsx index 92f86505d..850804129 100644 --- a/packages/rax-render/src/engine/base.jsx +++ b/packages/rax-render/src/engine/base.jsx @@ -241,6 +241,10 @@ export default class BaseEngine extends Component { if (!isSchema(schema)) return null; let Comp = components[schema.componentName] || engine.getNotFoundComponent(); + if (schema.hidden) { + return null; + } + if (schema.loop !== undefined) { return this.__createLoopVirtualDom( { From cd7b1e6d39d7da792a55f7d12bc4435bac1114cf Mon Sep 17 00:00:00 2001 From: "rorya.lyj" Date: Thu, 13 Aug 2020 17:47:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E8=AE=BE=E5=A4=87=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/public/raxAssets.json | 18 +++++++++--------- .../designer/src/builtin-simulator/host.less | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/demo/public/raxAssets.json b/packages/demo/public/raxAssets.json index 118ad7abc..80ece9c9b 100644 --- a/packages/demo/public/raxAssets.json +++ b/packages/demo/public/raxAssets.json @@ -132,25 +132,25 @@ "prototypeViewsUrl": null, "prototypeUrls": { "default": [ - "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.5/proto.bb4ec38.css", - "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.5/proto.ed31eab.js" + "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.25/proto.2f23cdf.css", + "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.25/proto.9a739a7.js" ] }, "prototypeConfigsUrl": [ - "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.5/proto.bb4ec38.css", - "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.5/proto.ed31eab.js" + "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.25/proto.2f23cdf.css", + "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.25/proto.9a739a7.js" ], "alias": "", "urls": [ - "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.5/view.f2b6dde.css", - "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.5/view.46f546f.js", - "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.5/view.mobile.f2b6dde.css", - "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.5/view.mobile.6b901e9.js" + "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.25/view.d6d0d1f.css", + "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.25/view.14bb8e8.js", + "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.25/view.mobile. d6d0d1f.css", + "https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep-mobile/2.0.1-beta.25/view.mobile.fe36565.js" ], "library": "AliVcDeepMobile", "components": null, "packageName": "@ali/vc-deep-mobile", - "version": "2.0.1-beta.5" + "version": "2.0.1-beta.25" }, { "prototypeViewsUrl": null, diff --git a/packages/designer/src/builtin-simulator/host.less b/packages/designer/src/builtin-simulator/host.less index d183408f2..c51cd5d67 100644 --- a/packages/designer/src/builtin-simulator/host.less +++ b/packages/designer/src/builtin-simulator/host.less @@ -24,7 +24,7 @@ &-device-mobile { left: 50%; - width: 460px; + width: 378px; transform: translateX(-50%); box-shadow: 0 2px 10px 0 rgba(31,56,88,.15); }