From 7c0985f032ab168e013e0c9d7421fb7ebf716c28 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 28 Apr 2023 09:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/style/layout.css | 3 ++- .../uni-data-select/uni-data-select.vue | 25 +++++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/common/style/layout.css b/common/style/layout.css index 937e9d6..693f188 100644 --- a/common/style/layout.css +++ b/common/style/layout.css @@ -164,7 +164,8 @@ uni-button:after { color: #fff; } .filter_input_wraper { - flex: 1; + /* flex: 1; */ + width: calc(100% - 170rpx); height: 80rpx; padding: 5rpx 0; margin-left: 30rpx; diff --git a/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue b/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue index 2196694..3c31fcf 100644 --- a/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue +++ b/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue @@ -6,8 +6,8 @@ {{current}} {{typePlaceholder}} - - + + @@ -319,7 +319,9 @@ /* #endif */ flex: 1; flex-direction: row; - align-items: center; + align-items: center; + justify-content: space-between; + overflow: hidden; } .uni-select__input { @@ -360,12 +362,14 @@ .uni-select__selector-empty, .uni-select__selector-item { /* #ifndef APP-NVUE */ - display: flex; + display: flex; + align-items: center; cursor: pointer; /* #endif */ - line-height: 35px; - font-size: 14px; - text-align: center; + line-height: 15px; + height: 35px; + font-size: 12px; + text-align: left; /* border-bottom: solid 1px $uni-border-3; */ padding: 0px 10px; } @@ -417,12 +421,17 @@ .uni-select__input-text { // width: 280px; - width: 100%; + width: calc(100% - 50px); color: $uni-main-color; white-space: nowrap; text-overflow: ellipsis; -o-text-overflow: ellipsis; overflow: hidden; + } + + .zd_icon_wraper { + width: 50px; + text-align: right; } .uni-select__input-placeholder {