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
- isBoxShadow: {
31
+ searchStyle: {
32
+ type: String,
33
+ value: ""
34
+ },
35
+ // 是否聚焦
36
+ focus: {
32
37
  type: Boolean,
33
- value: true
38
+ value: false
34
39
  }
35
40
  },
36
41
  /**
@@ -1,6 +1,6 @@
1
- <view class="auth-search-box" style="box-shadow: {{ isBoxShadow ? '0px 3px 3px 0px rgba(40, 65, 91, 0.1);' : '0px' }}">
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-wechat-auth",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",