Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
ab6b09d4
Commit
ab6b09d4
authored
Jul 30, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 搜索问题
parent
a00dcbe3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
index.vue
src/pages/search/index.vue
+1
-0
u-search.vue
src/uview-ui/components/u-search/u-search.vue
+5
-5
No files found.
src/pages/search/index.vue
View file @
ab6b09d4
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
bg-color=
"#fff"
bg-color=
"#fff"
v-model=
"keyword"
v-model=
"keyword"
@
custom=
"search"
@
custom=
"search"
@
search=
"search"
></u-search>
></u-search>
</view>
</view>
...
...
src/uview-ui/components/u-search/u-search.vue
View file @
ab6b09d4
...
@@ -269,11 +269,11 @@ export default {
...
@@ -269,11 +269,11 @@ export default {
blur
()
{
blur
()
{
// 最开始使用的是监听图标@touchstart事件,自从hx2.8.4后,此方法在微信小程序出错
// 最开始使用的是监听图标@touchstart事件,自从hx2.8.4后,此方法在微信小程序出错
// 这里改为监听点击事件,手点击清除图标时,同时也发生了@blur事件,导致图标消失而无法点击,这里做一个延时
// 这里改为监听点击事件,手点击清除图标时,同时也发生了@blur事件,导致图标消失而无法点击,这里做一个延时
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
focused
=
false
;
//
this.focused = false;
},
100
)
//
}, 100)
this
.
show
=
false
;
//
this.show = false;
this
.
$emit
(
'blur'
,
this
.
keyword
);
//
this.$emit('blur', this.keyword);
},
},
// 点击搜索框,只有disabled=true时才发出事件,因为禁止了输入,意味着是想跳转真正的搜索页
// 点击搜索框,只有disabled=true时才发出事件,因为禁止了输入,意味着是想跳转真正的搜索页
clickHandler
()
{
clickHandler
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment