Commit 982b77e8 authored by zhangyanni's avatar zhangyanni

Merge remote-tracking branch 'origin/master'

parents 40e831c0 971ab0d9
......@@ -1798,7 +1798,8 @@ module.exports = {
interseted:{
title:"Area of interest",
check:" (multiple choices)",
add:"Add Area of Interest"
add:"Add Area of Interest",
revolve:'revolve'
},
articleInfo:{
......
......@@ -1896,7 +1896,8 @@ module.exports = {
interseted:{
title:"请选择您感兴趣的领域",
check:"(可多选)",
add:"添加兴趣领域"
add:"添加兴趣领域",
revolve:'旋转'
},
......
......@@ -51,6 +51,7 @@
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="rotateRight">{{$t("interseted.revolve")}}</el-button>
<el-button @click="handleCancel">{{$t("commonTips.cancel")}}</el-button>
<el-button type="primary" @click="finish" :loading="loading">{{$t("commonTips.confirm")}}</el-button>
</div>
......@@ -92,11 +93,11 @@
autoCrop: true, // 是否默认生成截图框
autoCropWidth: 128, // 默认生成截图框宽度
autoCropHeight: 128, // 默认生成截图框高度
fixedBox: true, // 固定截图框大小 不允许改变
fixedBox: false, // 固定截图框大小 不允许改变
fixed: true, // 是否开启截图框宽高固定比例
// fixedNumber: [7, 5], // 截图框的宽高比例
fixedNumber: [1, 1], // 截图框的宽高比例
// fixedNumber: [4, 3], // 截图框的宽高比例
full: true, // 是否输出原图比例的截图
full: false, // 是否输出原图比例的截图
canMoveBox: false, // 截图框能否拖动
original: false, // 上传图片按照原始比例渲染
centerBox: false, // 截图框是否被限制在图片里面
......@@ -120,7 +121,10 @@
this.$emit("postErrorText",0,1);
this.disabledFlag = 0;
},
//右旋转
rotateRight() {
this.$refs.cropper.rotateRight();
},
timeoutFunc(){
var that = this;
setTimeout(function(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment