From bccce8c8a9f09d98f15747048587c1fa2f1122fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=93=8D=E6=8C=87?= Date: Sun, 30 Aug 2020 15:12:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0miniapp=E5=A4=96?= =?UTF-8?q?=E5=A3=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designer/src/builtin-simulator/host.less | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/designer/src/builtin-simulator/host.less b/packages/designer/src/builtin-simulator/host.less index c51cd5d67..d7c878a64 100644 --- a/packages/designer/src/builtin-simulator/host.less +++ b/packages/designer/src/builtin-simulator/host.less @@ -29,6 +29,38 @@ box-shadow: 0 2px 10px 0 rgba(31,56,88,.15); } + // &-device-mobile { + // left: 50%; + // width: 378px; + // transform: translateX(-50%); + // background: url(https://img.alicdn.com/tfs/TB1b4DHilFR4u4jSZFPXXanzFXa-750-1574.png) no-repeat top; + // background-size: 378px 812px; + // top: 8px; + // .@{scope}-canvas-viewport { + // width: auto; + // top: 90px; + // left: 0px; + // right: 0px; + // max-height: 688px; + // } + // } + + &-device-miniapp { // 增加默认的小程序的壳 + left: 50%; + width: 378px; + transform: translateX(-50%); + background: url(https://img.alicdn.com/tfs/TB1b4DHilFR4u4jSZFPXXanzFXa-750-1574.png) no-repeat top; + background-size: 378px 812px; + top: 8px; + .@{scope}-canvas-viewport { + width: auto; + top: 90px; + left: 0px; + right: 0px; + max-height: 688px; + } + } + &-device-iphone6 { left: 50%; width: 378px;