提交 158dfdc1 编写于 作者: bo.dang's avatar bo.dang

Merge branch 'dev-circle-live-20200715' into 'release'

裁剪缩放优化,code review:bo.dang



See merge request !199
......@@ -171,21 +171,21 @@
// });
},
cropstart:(event) => {
console.log(event.detail.originalEvent);
console.log(event.detail.action);
if(this.cropOption.aspectRatio == 0){
if(event.detail.action == "w"
|| event.detail.action == "e"
|| event.detail.action == "se"
|| event.detail.action == "sw"
|| event.detail.action == "ne"
|| event.detail.action == "nw"){
event.preventDefault();
}
}
},
// cropstart:(event) => {
// console.log(event.detail.originalEvent);
// console.log(event.detail.action);
//
// if(this.cropOption.aspectRatio == 0){
// if(event.detail.action == "w"
// || event.detail.action == "e"
// || event.detail.action == "se"
// || event.detail.action == "sw"
// || event.detail.action == "ne"
// || event.detail.action == "nw"){
// event.preventDefault();
// }
// }
// },
// zoom: function (event) {
// // Keep the image in its natural size
......
......@@ -267,7 +267,9 @@
}
else if(_this.width > fileLimit.width || _this.height > fileLimit.height){
vm.showCropper = true;
// return;
vm.currentOption.cvWidth = _this.width;
vm.currentOption.cvHeight = _this.height;
return;
}
else {
openLoading(vm);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册