From ae2fa2441a8b5af7c2d0932a27363e1506fc570a Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Tue, 18 Jun 2024 14:22:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=9C=A8=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=AB=AF=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/flex.scss | 82 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 61 insertions(+), 21 deletions(-) diff --git a/static/flex.scss b/static/flex.scss index 0b46137..4463200 100644 --- a/static/flex.scss +++ b/static/flex.scss @@ -1,8 +1,49 @@ -page ::v-deep { - uni-view, - uni-label, - uni-swiper-item, - uni-scroll-view { +view, +label, +swiper-item +{ + display: flex; + flex-shrink: 0; + flex-grow: 0; + flex-basis: auto; + align-items: stretch; + align-content: flex-start; +} + +button{ + margin: 0; +} + +view, +label, +swiper-item { + flex-direction: column; +} + + +view, +image, +input, +scroll-view, +swiper, +swiper-item, +text, +textarea, +video { + position: relative; + border: 0px solid #000000; + box-sizing: border-box; +} + +swiper-item { + position: absolute; +} + +::v-deep { + view, + label, + swiper-item + { display: flex; flex-shrink: 0; flex-grow: 0; @@ -11,32 +52,31 @@ page ::v-deep { align-content: flex-start; } - uni-button{ + button{ margin: 0; } - uni-view, - uni-label, - uni-swiper-item { + view, + label, + swiper-item { flex-direction: column; } - - uni-view, - uni-image, - uni-input, - uni-scroll-view, - uni-swiper, - uni-swiper-item, - uni-text, - uni-textarea, - uni-video { + view, + image, + input, + scroll-view, + swiper, + swiper-item, + text, + textarea, + video { position: relative; border: 0px solid #000000; box-sizing: border-box; } - uni-swiper-item { + swiper-item { position: absolute; } -} \ No newline at end of file +} -- GitLab