From 5c82a42bb44b76e9a9c212860fbb5b8c86e05389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 28 Aug 2019 19:06:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84layer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer/next.wc | 249 +++++++++++++++++++++++++++++++--------------- 1 file changed, 167 insertions(+), 82 deletions(-) diff --git a/src/layer/next.wc b/src/layer/next.wc index bf44ef5..877a939 100644 --- a/src/layer/next.wc +++ b/src/layer/next.wc @@ -38,10 +38,7 @@ &.shift { transition: all 0.5s ease-out; } - &.scale { - transform: scale(1.02); - transition: transform 0.1s linear; - } + &.blur { backdrop-filter: blur(5px); } @@ -53,6 +50,7 @@ /* 弹层样式 */ &__title { + display: flex; width: 100%; height: 60px; padding: 15px; @@ -62,17 +60,33 @@ } &__content { + display: flex; position: relative; width: 100%; height: auto; min-height: 50px; word-break: break-all; word-wrap: break-word; + + ::slotted(&__input) { + flex: 1; + height: 32px; + } + + ::slotted(&__frame) { + display: flex; + width: 100%; + height: 100%; + margin: 0; + padding: 0; + border: 0; + resize: none; + } } &__ctrl { display: flex; - flex-direction: row-reverse; + justify-content: flex-end; width: 100%; height: 60px; padding: 15px; @@ -156,6 +170,7 @@