@taole/dev-helper 0.1.11 → 0.1.12

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.
@@ -82,7 +82,7 @@
82
82
  this._clipboardTextTimer = null;
83
83
  }
84
84
  _log(...args) {
85
- if (this._debug) {
85
+ if (this._debug || true) {
86
86
  console.log('open-diandian:[' + this._id + ']', ...args);
87
87
  }
88
88
  }
@@ -160,6 +160,14 @@
160
160
  }, 5000);
161
161
  }
162
162
  });
163
+ this._openAppTag.addEventListener('launch', (e) => {
164
+ this._log('open-diandian: wx-open-launch-app launch', e);
165
+ this.dispatchEvent(new CustomEvent('launch', {
166
+ detail: e.detail, // 如需透传微信事件数据
167
+ bubbles: true,
168
+ composed: true,
169
+ }));
170
+ });
163
171
  } else {
164
172
  this._updateTagAttr();
165
173
  }
@@ -77,7 +77,7 @@ function defineTag() {
77
77
  this._clipboardTextTimer = null;
78
78
  }
79
79
  _log(...args) {
80
- if (this._debug) {
80
+ if (this._debug || true) {
81
81
  console.log('open-diandian:[' + this._id + ']', ...args);
82
82
  }
83
83
  }
@@ -155,6 +155,14 @@ function defineTag() {
155
155
  }, 5000);
156
156
  }
157
157
  });
158
+ this._openAppTag.addEventListener('launch', (e) => {
159
+ this._log('open-diandian: wx-open-launch-app launch', e);
160
+ this.dispatchEvent(new CustomEvent('launch', {
161
+ detail: e.detail, // 如需透传微信事件数据
162
+ bubbles: true,
163
+ composed: true,
164
+ }));
165
+ });
158
166
  } else {
159
167
  this._updateTagAttr();
160
168
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/dev-helper",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "npx -y rimraf dist && rollup -c",