From 36cf743363f8ba9f3bf8852588b0e4f34c84f222 Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Mon, 17 Jun 2024 20:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20flex.scss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-im-info-card/uni-im-info-card.vue | 7 +-- components/uni-im-msg/types/text.vue | 1 + static/flex.scss | 52 ++++++++++++++----- 3 files changed, 44 insertions(+), 16 deletions(-) diff --git a/components/uni-im-info-card/uni-im-info-card.vue b/components/uni-im-info-card/uni-im-info-card.vue index 8945f6c..91d6832 100644 --- a/components/uni-im-info-card/uni-im-info-card.vue +++ b/components/uni-im-info-card/uni-im-info-card.vue @@ -140,7 +140,7 @@ justify-content: center; overflow: hidden; margin-left: 5px; - + flex-shrink: 1; .row { flex-direction: row; align-items: center; @@ -212,7 +212,8 @@ .note-box { flex-direction: row; overflow: hidden; - align-items: center; + align-items: center; + flex-shrink: 1; .red-note { font-size: 12px; @@ -220,7 +221,7 @@ color: #f00; } - .note { + .note { font-size: 14px; color: #aaa; @include ellipsis; diff --git a/components/uni-im-msg/types/text.vue b/components/uni-im-msg/types/text.vue index 9e0fbd0..7a20c1a 100644 --- a/components/uni-im-msg/types/text.vue +++ b/components/uni-im-msg/types/text.vue @@ -84,6 +84,7 @@ border-radius: 10px; background-color: #FFFFFF; min-width: 30px; + flex-shrink: 1; .msg-text { padding: 10px; font-size: 15px; diff --git a/static/flex.scss b/static/flex.scss index e3f9844..0b46137 100644 --- a/static/flex.scss +++ b/static/flex.scss @@ -1,16 +1,42 @@ -page,view, -::v-deep view{ - display: flex; - flex-direction: column; - box-sizing: border-box; -} - -page,page ::v-deep { - text,button,scroll-view { +page ::v-deep { + uni-view, + uni-label, + uni-swiper-item, + uni-scroll-view { + display: flex; + flex-shrink: 0; + flex-grow: 0; + flex-basis: auto; + align-items: stretch; + align-content: flex-start; + } + + uni-button{ + margin: 0; + } + + uni-view, + uni-label, + uni-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 { + position: relative; + border: 0px solid #000000; box-sizing: border-box; } - label { - display: flex; + + uni-swiper-item { + position: absolute; } -} - +} \ No newline at end of file -- GitLab