Vux: Search组件在失去焦点的情况下不会回到默认状态

Created on 5 Nov 2017  ·  3Comments  ·  Source: airyland/vux

步骤1,点击Search组件,进入文本输入状态
步骤2,清空内容
步骤3,点空白区域

Search组件依然在最上方,demo中就是如此

componensearch will not implement

Most helpful comment

步骤1,点击Search组件,进入文本输入状态
步骤2,清空内容
步骤3,点空白区域

Search组件依然在最上方,demo中就是如此

官方没提供此逻辑,但是你可以看下源码,其实你可以用 this.$refs.search.handleResultClick(item)来hack这个需求

All 3 comments

点空白区域并不会改变定位,这是设计如此。点取消才会恢复状态。

在自定义slot搜索结果的情况下,点击搜索结果列表无法回到默认状态,这种情况应该怎么解决呢

步骤1,点击Search组件,进入文本输入状态
步骤2,清空内容
步骤3,点空白区域

Search组件依然在最上方,demo中就是如此

官方没提供此逻辑,但是你可以看下源码,其实你可以用 this.$refs.search.handleResultClick(item)来hack这个需求

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lkangd picture lkangd  ·  5Comments

chengjs picture chengjs  ·  4Comments

GloriaCHL picture GloriaCHL  ·  4Comments

RenShine picture RenShine  ·  4Comments

prettybot picture prettybot  ·  3Comments