xyvcard-wechat-auth 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,12 +25,17 @@ Component({
|
|
|
25
25
|
// 背景色
|
|
26
26
|
backColor: {
|
|
27
27
|
type: String,
|
|
28
|
-
value: ""
|
|
28
|
+
value: "#fff"
|
|
29
29
|
},
|
|
30
30
|
// 是否有阴影
|
|
31
|
-
|
|
31
|
+
searchStyle: {
|
|
32
|
+
type: String,
|
|
33
|
+
value: ""
|
|
34
|
+
},
|
|
35
|
+
// 是否聚焦
|
|
36
|
+
focus: {
|
|
32
37
|
type: Boolean,
|
|
33
|
-
value:
|
|
38
|
+
value: false
|
|
34
39
|
}
|
|
35
40
|
},
|
|
36
41
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<view class="auth-search-box" style="
|
|
1
|
+
<view class="auth-search-box" style="{{ searchStyle }}">
|
|
2
2
|
<image src="{{ resourceUrl + '/icon_image/icon_search.png' }}" class="search-icon"></image>
|
|
3
|
-
<input class="search-input" style="background-color: {{ backColor }}; width: {{ isSearchBtn ? '60%' : '100%' }}; {{ isSearchBtn ? '' : 'padding-right: 20px' }}" placeholder="{{ placeholder }}" disabled="{{ disabled }}" value="{{ likeName }}" bindinput="handleInput" bind:tap="handleTap" />
|
|
3
|
+
<input class="search-input" style="background-color: {{ backColor }}; width: {{ isSearchBtn ? '60%' : '100%' }}; {{ isSearchBtn ? '' : 'padding-right: 20px' }}" focus="{{ focus }}" placeholder="{{ placeholder }}" disabled="{{ disabled }}" value="{{ likeName }}" bindinput="handleInput" bind:tap="handleTap" />
|
|
4
4
|
<view class="search-btn" wx:if="{{ isSearchBtn }}">
|
|
5
5
|
<slot></slot>
|
|
6
6
|
</view>
|