|
@@ -1092,7 +1092,6 @@ export default {
|
|
|
this.showPreView = true;
|
|
|
this.isLoadingPreview = false;
|
|
|
}, 1000);
|
|
|
- clearTimeout(param)
|
|
|
});
|
|
|
},
|
|
|
selectedElement(element) {
|
|
@@ -1257,7 +1256,7 @@ export default {
|
|
|
var param = setTimeout(() => {
|
|
|
that.selectedButtom = true;
|
|
|
}, 1);
|
|
|
- clearTimeout(param)
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
img.src = res;
|
|
@@ -1289,12 +1288,12 @@ export default {
|
|
|
var param = setTimeout(() => {
|
|
|
that.selectedButtom = true;
|
|
|
}, 1);
|
|
|
- clearTimeout(param);
|
|
|
+
|
|
|
that.unSelectedButtom = false;
|
|
|
var param2 = setTimeout(() => {
|
|
|
that.unSelectedButtom = true;
|
|
|
}, 1);
|
|
|
- clearTimeout(param2);
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
img.src = res;
|
|
@@ -1365,14 +1364,14 @@ export default {
|
|
|
var params = setTimeout(() => {
|
|
|
that.selectedButtom = true;
|
|
|
}, 1);
|
|
|
- clearTimeout(params);
|
|
|
+
|
|
|
} else {
|
|
|
that.buttonData.backgroundUnselectedImg = res;
|
|
|
that.unSelectedButtom = false;
|
|
|
var param = setTimeout(() => {
|
|
|
that.unSelectedButtom = true;
|
|
|
}, 1);
|
|
|
- clearTimeout(param);
|
|
|
+
|
|
|
}
|
|
|
that.buttonData.itemId = that.itemId;
|
|
|
that.buttonData.width = img.width;
|
|
@@ -1424,12 +1423,10 @@ export default {
|
|
|
var params1 = setTimeout(() => {
|
|
|
this.selectedButtom = true;
|
|
|
}, 0.1);
|
|
|
- clearTimeout(params1);
|
|
|
this.unSelectedButtom = false;
|
|
|
var params2 = setTimeout(() => {
|
|
|
this.unSelectedButtom = true;
|
|
|
}, 0.1);
|
|
|
- clearTimeout(params2);
|
|
|
}
|
|
|
},
|
|
|
components: {
|