emacroh5lib 1.0.34 → 1.0.35

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": "emacroh5lib",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "EMacro前端组件库",
5
5
  "main": "dist/emacroh5lib.min.js",
6
6
  "scripts": {
@@ -184,16 +184,12 @@
184
184
  // })
185
185
 
186
186
  Promise.race(promises).then((data) => {
187
- this.image = this.$refs["duoViewerImage"];
188
- this.initDrag();
189
- this.loadComplete()
190
- try {
191
- const { width, height } = $this.listDataCache[index];
192
- $this.setStyleByName($this.image, "width", width);
193
- $this.setStyleByName($this.image, "height", height);
194
- } catch (error) {
195
- console.log("promises", error);
196
- }
187
+ $this.image = this.$refs["duoViewerImage"];
188
+ $this.initDrag();
189
+ $this.loadComplete()
190
+ const { width, height } = $this.listDataCache[index];
191
+ $this.setStyleByName($this.image, "width", width);
192
+ $this.setStyleByName($this.image, "height", height);
197
193
  })
198
194
 
199
195
  },