emacroh5lib 1.0.62 → 1.0.65
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
@@ -117,6 +117,16 @@
|
|
117
117
|
watch: {
|
118
118
|
show(val) {
|
119
119
|
if (val) {
|
120
|
+
|
121
|
+
setTimeout(() => {
|
122
|
+
console.log("切换", Date.now);
|
123
|
+
$this.switchAction("next");
|
124
|
+
console.log("切换1", Date.now);
|
125
|
+
setTimeout(() => {
|
126
|
+
this.switchAction("prev");
|
127
|
+
}, 100);
|
128
|
+
}, 100);
|
129
|
+
|
120
130
|
this.$emit("open");
|
121
131
|
this.index = this.currentIndex;
|
122
132
|
this.init();
|
@@ -161,17 +171,6 @@
|
|
161
171
|
width: `${imageObject.width}px`,
|
162
172
|
height: `${imageObject.height}px`,
|
163
173
|
};
|
164
|
-
|
165
|
-
console.log("切换1", i);
|
166
|
-
if (i == 0) {
|
167
|
-
console.log("切换", Date.now);
|
168
|
-
$this.switchAction("next");
|
169
|
-
console.log("切换1", Date.now);
|
170
|
-
// setTimeout(() => {
|
171
|
-
// this.switchAction("prev");
|
172
|
-
// }, 100);
|
173
|
-
}
|
174
|
-
|
175
174
|
resolve("");
|
176
175
|
imageObject.onload = null
|
177
176
|
|
@@ -194,6 +193,8 @@
|
|
194
193
|
// $this.setStyleByName($this.image, "width", width);
|
195
194
|
// $this.setStyleByName($this.image, "height", height);
|
196
195
|
|
196
|
+
|
197
|
+
|
197
198
|
this.image = this.$refs["duoViewerImage"];
|
198
199
|
this.initDrag();
|
199
200
|
this.$emit("loadComplete");
|
@@ -203,6 +204,7 @@
|
|
203
204
|
})
|
204
205
|
|
205
206
|
Promise.race(promises).then((data) => {
|
207
|
+
|
206
208
|
this.image = this.$refs["duoViewerImage"];
|
207
209
|
this.initDrag();
|
208
210
|
this.$emit("loadComplete");
|