Skip to content

Commit bb3caf5

Browse files
committed
feat(SearchBar): 属性 address 更名为 front-text
BREAKING CHANGE: 属性 address 废弃
1 parent c5af3f7 commit bb3caf5

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

dist/search-bar/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/search-bar/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<view class="search-bar l-container-class">
22
<slot name="before"/>
3-
<view wx:if="{{address}}" class="icon-container" bind:tap="handleTapFrontText">
4-
<text class="city">{{address}}</text>
3+
<view wx:if="{{frontText}}" class="icon-container" bind:tap="handleTapFrontText">
4+
<text class="city">{{frontText}}</text>
55
<l-icon name="down" color="#333" size="22"/>
66
</view>
77
<view class="search-input l-class {{'search-input-'+ shape}}" style="{{'background-color:'+bgColor}}">

examples/dist/search-bar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Component({
2626
type: String,
2727
value: '取消'
2828
},
29-
address: String,
29+
frontText: String,
3030
custom: Boolean,
3131
value: String,
3232
type: String,

examples/dist/search-bar/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<view class="search-bar l-container-class">
22
<slot name="before"/>
3-
<view wx:if="{{address}}" class="icon-container" bind:tap="handleTapFrontText">
4-
<text class="city">{{address}}</text>
3+
<view wx:if="{{frontText}}" class="icon-container" bind:tap="handleTapFrontText">
4+
<text class="city">{{frontText}}</text>
55
<l-icon name="down" color="#333" size="22" />
66
</view>
77
<view class="search-input l-class {{'search-input-'+ shape}}" style="{{'background-color:'+bgColor}}">

src/search-bar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Component({
2626
type: String,
2727
value: '取消'
2828
},
29-
address: String,
29+
frontText: String,
3030
custom: Boolean,
3131
value: String,
3232
type: String,

src/search-bar/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<view class="search-bar l-container-class">
22
<slot name="before"/>
3-
<view wx:if="{{address}}" class="icon-container" bind:tap="handleTapFrontText">
4-
<text class="city">{{address}}</text>
3+
<view wx:if="{{frontText}}" class="icon-container" bind:tap="handleTapFrontText">
4+
<text class="city">{{frontText}}</text>
55
<l-icon name="down" color="#333" size="22" />
66
</view>
77
<view class="search-input l-class {{'search-input-'+ shape}}" style="{{'background-color:'+bgColor}}">

0 commit comments

Comments
 (0)