Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
173a6249
提交
173a6249
编写于
7月 28, 2020
作者:
bo.dang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
裁剪缩放优化
上级
409e3a9f
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
16 行删除
+18
-16
cropper.vue
src/components/common/cropper.vue
+15
-15
baseinfo.vue
src/components/yqrange/baseinfo.vue
+3
-1
未找到文件。
src/components/common/cropper.vue
浏览文件 @
173a6249
...
@@ -171,21 +171,21 @@
...
@@ -171,21 +171,21 @@
// });
// });
},
},
cropstart
:(
event
)
=>
{
//
cropstart:(event) => {
console
.
log
(
event
.
detail
.
originalEvent
);
//
console.log(event.detail.originalEvent);
console
.
log
(
event
.
detail
.
action
);
//
console.log(event.detail.action);
//
if
(
this
.
cropOption
.
aspectRatio
==
0
){
//
if(this.cropOption.aspectRatio == 0){
if
(
event
.
detail
.
action
==
"w"
//
if(event.detail.action == "w"
||
event
.
detail
.
action
==
"e"
//
|| event.detail.action == "e"
||
event
.
detail
.
action
==
"se"
//
|| event.detail.action == "se"
||
event
.
detail
.
action
==
"sw"
//
|| event.detail.action == "sw"
||
event
.
detail
.
action
==
"ne"
//
|| event.detail.action == "ne"
||
event
.
detail
.
action
==
"nw"
){
//
|| event.detail.action == "nw"){
event
.
preventDefault
();
//
event.preventDefault();
}
//
}
}
//
}
},
//
},
// zoom: function (event) {
// zoom: function (event) {
// // Keep the image in its natural size
// // Keep the image in its natural size
...
...
src/components/yqrange/baseinfo.vue
浏览文件 @
173a6249
...
@@ -267,7 +267,9 @@
...
@@ -267,7 +267,9 @@
}
}
else if(_this.width > fileLimit.width || _this.height > fileLimit.height){
else if(_this.width > fileLimit.width || _this.height > fileLimit.height){
vm.showCropper = true;
vm.showCropper = true;
// return;
vm.currentOption.cvWidth = _this.width;
vm.currentOption.cvHeight = _this.height;
return;
}
}
else {
else {
openLoading(vm);
openLoading(vm);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录