meixioacomponent 0.1.83 → 0.1.84
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
|
@@ -96,6 +96,7 @@ export default {
|
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
98
|
methods: {
|
|
99
|
+
// 初始化
|
|
99
100
|
init() {
|
|
100
101
|
this.$nextTick(() => {
|
|
101
102
|
this.maxLeft =
|
|
@@ -104,6 +105,7 @@ export default {
|
|
|
104
105
|
this.loading = false;
|
|
105
106
|
this.moveX = 0;
|
|
106
107
|
this.moveLeft = 0;
|
|
108
|
+
this.module = false;
|
|
107
109
|
});
|
|
108
110
|
},
|
|
109
111
|
|
|
@@ -123,9 +125,9 @@ export default {
|
|
|
123
125
|
}
|
|
124
126
|
},
|
|
125
127
|
mouseleave() {
|
|
128
|
+
if (!this.moveStatus) return;
|
|
126
129
|
if (this.moveLeft < this.maxLeft) {
|
|
127
130
|
this.moveStatus = 0;
|
|
128
|
-
this.module = false;
|
|
129
131
|
this.init();
|
|
130
132
|
} else {
|
|
131
133
|
this.setComplate();
|
|
@@ -138,9 +140,15 @@ export default {
|
|
|
138
140
|
|
|
139
141
|
setComplate() {
|
|
140
142
|
this.moveStatus = 2;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
watch: {
|
|
146
|
+
moveStatus(newVal, oldVal) {
|
|
147
|
+
if (newVal == 2) {
|
|
148
|
+
this.module = true;
|
|
149
|
+
this.moveLeft = this.maxLeft;
|
|
150
|
+
this.$emit("verifiComplate");
|
|
151
|
+
}
|
|
144
152
|
},
|
|
145
153
|
},
|
|
146
154
|
};
|