From c5a7b4f3aa888ea5ccf0c598e9a9210f98f9941e Mon Sep 17 00:00:00 2001 From: wk Date: 星期四, 13 六月 2024 16:19:18 +0800 Subject: [PATCH] feat:登录图标 --- pages/login/user.vue | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) diff --git a/pages/login/user.vue b/pages/login/user.vue index 08d574e..396b68f 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" -- Gitblit v1.9.1