xyvcard-wechat-auth 0.0.27 → 0.0.28

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.
@@ -27,6 +27,11 @@ Component({
27
27
  type: String,
28
28
  value: "#fff"
29
29
  },
30
+ // 字体色
31
+ color: {
32
+ type: String,
33
+ value: "#6B7280"
34
+ },
30
35
  // 是否有阴影
31
36
  searchStyle: {
32
37
  type: String,
@@ -36,6 +41,11 @@ Component({
36
41
  focus: {
37
42
  type: Boolean,
38
43
  value: false
44
+ },
45
+ // 搜索图标颜色
46
+ iconColor: {
47
+ type: String,
48
+ value: ""
39
49
  }
40
50
  },
41
51
  /**
@@ -1,6 +1,6 @@
1
1
  <view class="auth-search-box" style="{{ searchStyle }}">
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' }}" focus="{{ focus }}" placeholder="{{ placeholder }}" disabled="{{ disabled }}" value="{{ likeName }}" bindinput="handleInput" bind:tap="handleTap" />
2
+ <image src="{{ resourceUrl + '/icon_image/icon_search.png' }}" class="search-icon" style="filter: drop-shadow(0 0 0 {{ iconColor }});"></image>
3
+ <input class="search-input" style="color: {{ color }}; 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.27",
3
+ "version": "0.0.28",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",