Skip to content

Commit

Permalink
优化searchbar
Browse files Browse the repository at this point in the history
  • Loading branch information
bearyan committed Dec 6, 2016
1 parent 8142eb0 commit 1c9a395
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/example/searchbar/searchbar.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<view class="weui-search-bar__form">
<view class="weui-search-bar__box">
<icon class="weui-icon-search_in-box" type="search" size="14"></icon>
<input type="text" class="weui-search-bar__input" placeholder="搜索" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" bindblur="hideInput" />
<input type="text" class="weui-search-bar__input" placeholder="搜索" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" />
<view class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput">
<icon type="clear" size="14"></icon>
</view>
Expand Down
1 change: 1 addition & 0 deletions dist/style/weui.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,7 @@ icon {
}
.weui-icon-search {
margin-right: 8px;
font-size: inherit;
}
.weui-icon-search_in-box {
position: absolute;
Expand Down
1 change: 1 addition & 0 deletions dist/style/widget/weui-searchbar/weui-searchbar.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
}
.weui-icon-search {
margin-right: 8px;
font-size: inherit;
}
.weui-icon-search_in-box {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion src/example/searchbar/searchbar.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<view class="weui-search-bar__form">
<view class="weui-search-bar__box">
<icon class="weui-icon-search_in-box" type="search" size="14"></icon>
<input type="text" class="weui-search-bar__input" placeholder="搜索" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" bindblur="hideInput" />
<input type="text" class="weui-search-bar__input" placeholder="搜索" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" />
<view class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput">
<icon type="clear" size="14"></icon>
</view>
Expand Down

0 comments on commit 1c9a395

Please sign in to comment.