jmash-core-mp 0.1.69 → 0.1.71

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.
@@ -18,7 +18,7 @@ const defaultConfig = {
18
18
  // 公众号APPID-索易科技
19
19
  officialAccountId: "wx2ec7549343d60f3a",
20
20
  // 公众号文章URL
21
- officialAccountArticleUrl: "",
21
+ officialAccountArticleUrl: "https://mp.weixin.qq.com/s/PDuEQlzwVkWmoWcj4xWSew",
22
22
  };
23
23
  const config = { ...defaultConfig };
24
24
  function setConfig(cfg) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core-mp",
3
- "version": "0.1.69",
3
+ "version": "0.1.71",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -5,7 +5,7 @@
5
5
  <input class="search-input" placeholder-style="color: {{ color }};"
6
6
  style="color: {{ color }}; background-color: {{ backColor }}; width: {{ isSearchBtn ? '60%' : '100%' }}; {{ isSearchBtn ? '' : 'padding-right: 40rpx' }}"
7
7
  focus="{{ focus }}" placeholder="{{ placeholder }}" disabled="{{ disabled }}" value="{{ likeName }}"
8
- bind:input="handleInput" bind:change="handleChange" bind:tap="handleTap" />
8
+ bind:input="handleInput" bind:blur="handleBlur" bind:tap="handleTap" />
9
9
  <view class="search-btn" wx:if="{{ isSearchBtn }}">
10
10
  <slot></slot>
11
11
  </view>
@@ -74,9 +74,9 @@ createComponent({
74
74
  handleInput(e: EventBase) {
75
75
  this.triggerEvent("handleSearch", e.detail.value)
76
76
  },
77
- // 输入框改变事件
78
- handleChange(e: EventBase) {
79
- this.triggerEvent("handelChange", e.detail.value)
77
+ // 输入框失焦事件(input 无 change 事件,失焦用 blur;点击键盘完成/点页面空白均会触发)
78
+ handleBlur(e: EventBase) {
79
+ this.triggerEvent("blur", e.detail.value)
80
80
  },
81
81
  // 一般用于点击搜索框跳转到搜索页
82
82
  handleTap() {
@@ -20,7 +20,8 @@ const defaultConfig: AppConfig = {
20
20
  // 公众号APPID-索易科技
21
21
  officialAccountId: "wx2ec7549343d60f3a",
22
22
  // 公众号文章URL
23
- officialAccountArticleUrl: "",
23
+ officialAccountArticleUrl:
24
+ "https://mp.weixin.qq.com/s/PDuEQlzwVkWmoWcj4xWSew",
24
25
  };
25
26
 
26
27
  const config: AppConfig = { ...defaultConfig };