From 3a0823db9324207eb54b1747dfe3d2c6d52a9962 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期一, 28 十月 2024 08:57:40 +0800
Subject: [PATCH] feat:库管修改显示条件

---
 pages/login/user.vue |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/pages/login/user.vue b/pages/login/user.vue
index 08d574e..f0104fc 100644
--- a/pages/login/user.vue
+++ b/pages/login/user.vue
@@ -1,22 +1,18 @@
 <template>
     <div class="drop-down-search" @click.stop>
       <view style="display: flex; align-items: center;">
-<!-- 		  <u--input v-model="username"
+		  <u--input 
+        @focus="handleFocus" 
+        @blur="closeDropDown"  
+        :style="{height: '100%', paddingRight: clear? '60rpx' : '16rpx', display: 'flex'  ,padding: '6px 9px', marginLeft:'8px'}"
+        v-model="searchText" 
+        @input="handleSearch" 
 		  	clearable
 		  	maxlength="32"
 		  	type="text"
-		  	placeholder="璇疯緭鍏ユ墜鏈哄彿"
+		  	 :placeholder="placeholder"
 		  	prefixIcon="account"
-		  	prefixIconStyle="font-size: 22px;color: #909399"></u--input> -->
-        <input
-          @focus="handleFocus" 
-          @blur="closeDropDown"  
-          :style="{height: '100%', paddingRight: clear? '60rpx' : '16rpx', display: 'flex'}" 
-          type="text" 
-          v-model="searchText" 
-          @input="handleSearch" 
-          :placeholder="placeholder"/>
- 
+		  	prefixIconStyle="font-size: 22px;color: #909399"></u--input>
         <text v-if="searchText.length && clear" @click="handleClearInput" class="iconfont icon-shanchu"></text>
         <view 
           @click="handleDropDownBox" 
@@ -107,7 +103,7 @@
       },
       // 澶勭悊鎼滅储浜嬩欢
       handleSearch(e) {
-        this.$emit('input', e.target.value); // 鍚戠埗缁勪欢浼犻�掗�変腑鐨勫��
+        this.$emit('input', e); // 鍚戠埗缁勪欢浼犻�掗�変腑鐨勫��
         this.isDropDownVisible = this.hasOptions;
       },
       handleFocus() {

--
Gitblit v1.9.1