fix(global): 裁剪框生产环境渲染问题修复

This commit is contained in:
ronger 2023-10-08 08:51:49 +08:00
parent 76113de0a8
commit f9a6148b4b

View File

@ -30,20 +30,15 @@
</el-card> </el-card>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<client-only>
<el-card> <el-card>
<div> <div style="display: block;">
<div class="cropperBox"> <div class="cropperBox">
<vue-cropper <vue-cropper
:aspect-ratio="1"
:autoCrop="autoCrop" :autoCrop="autoCrop"
:autoCropArea="1"
fixed
:fixedNumber="[1,1]"
:checkCrossOrigin="false"
:checkOrientation="false"
:img="headImgUrl" :img="headImgUrl"
preview=".preview"
ref="cropper" ref="cropper"
:fixed="true"
@realTime="realTime" @realTime="realTime"
/> />
</div> </div>
@ -77,6 +72,7 @@
</div> </div>
</div> </div>
</el-card> </el-card>
</client-only>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -161,13 +157,13 @@ export default {
cropImg: '', cropImg: '',
isEdit: false, isEdit: false,
autoCrop: true, autoCrop: true,
notificationFlag: true notificationFlag: true,
, contentHtml: {} contentHtml: {}
} }
}, },
methods: { methods: {
realTime(data) { realTime(data) {
this.cropImg = data this.cropImg = data;
}, },
_initEditor(data) { _initEditor(data) {
// //
@ -544,6 +540,4 @@ export default {
margin-bottom: 20px; margin-bottom: 20px;
border: 1px solid #F2F6FC; border: 1px solid #F2F6FC;
} }
</style> </style>