emacroh5lib 1.0.64 → 1.0.67

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.64",
3
+ "version": "1.0.67",
4
4
  "description": "EMacro前端组件库",
5
5
  "main": "dist/emacroh5lib.min.js",
6
6
  "scripts": {
@@ -117,9 +117,14 @@
117
117
  watch: {
118
118
  show(val) {
119
119
  if (val) {
120
+
120
121
  this.$emit("open");
121
122
  this.index = this.currentIndex;
122
123
  this.init();
124
+
125
+ setTimeout(() => {
126
+ this.switchAction("prev");
127
+ }, 100);
123
128
  } else {
124
129
  this.$emit("close");
125
130
  }
@@ -183,8 +188,6 @@
183
188
  // $this.setStyleByName($this.image, "width", width);
184
189
  // $this.setStyleByName($this.image, "height", height);
185
190
 
186
-
187
-
188
191
  this.image = this.$refs["duoViewerImage"];
189
192
  this.initDrag();
190
193
  this.$emit("loadComplete");
@@ -195,17 +198,6 @@
195
198
 
196
199
  Promise.race(promises).then((data) => {
197
200
 
198
- setTimeout(() => {
199
-
200
- console.log("切换", Date.now);
201
- $this.switchAction("next");
202
- console.log("切换1", Date.now);
203
- setTimeout(() => {
204
- this.switchAction("prev");
205
- }, 100);
206
-
207
- }, 100);
208
-
209
201
  this.image = this.$refs["duoViewerImage"];
210
202
  this.initDrag();
211
203
  this.$emit("loadComplete");