@dolphinweex/weex-harmony 0.1.86 → 0.1.88

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolphinweex/weex-harmony",
3
- "version": "0.1.86",
3
+ "version": "0.1.88",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -77,7 +77,8 @@ export default {
77
77
  }
78
78
  },
79
79
  created() {
80
- this.embedId = `embedId_${this._uid}_${this.generateNaiveId()}`
80
+ const componentType = this.embedType.replace('native/','')
81
+ this.embedId = `embedId_${this._uid}_${this.generateNaiveId()}_${componentType}`
81
82
  console.log("[sameLayerRendering] web component created.");
82
83
  weexModule.callNative("transferSameLayerArgs", {
83
84
  componentId: this.embedId,
@@ -168,6 +168,7 @@ export default {
168
168
  onDownloadSuccess: this.onDownloadSuccess,
169
169
  onStartDownload: this.onStartDownload,
170
170
  onPreviewImageClick: this.onPreviewImageClick,
171
+ onCaptureCompletion: this.onCaptureCompletion,
171
172
  };
172
173
  },
173
174
  },
@@ -256,6 +257,9 @@ export default {
256
257
  onPreviewImageClick(res) {
257
258
  this.$emit('onPreviewImageClick', res);
258
259
  },
260
+ onCaptureCompletion(){
261
+ this.$emit('onCaptureCompletion', res);
262
+ }
259
263
  },
260
264
  destroy(){
261
265
  this.embedPosition = this.defaultPosition;
@@ -169,6 +169,7 @@ export default {
169
169
  onDownloadSuccess: this.onDownloadSuccess,
170
170
  onStartDownload: this.onStartDownload,
171
171
  onPreviewImageClick: this.onPreviewImageClick,
172
+ onCaptureCompletion: this.onCaptureCompletion,
172
173
  };
173
174
  },
174
175
  },
@@ -257,6 +258,9 @@ export default {
257
258
  onPreviewImageClick(res) {
258
259
  this.$emit('onPreviewImageClick', res);
259
260
  },
261
+ onCaptureCompletion(){
262
+ this.$emit('onCaptureCompletion', res);
263
+ }
260
264
  },
261
265
  destroy(){
262
266
  this.embedPosition = this.defaultPosition;