编辑我得头像:增加参数handleWH,如果为false则传多少宽高,最终裁剪后的宽高就是多少

This commit is contained in:
1378012178@qq.com 2025-02-11 13:58:02 +08:00
parent f071a4c7ee
commit 7e60c279d2
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
<!-- #endif --> <!-- #endif -->
<!-- #ifndef MP-WEIXIN --> <!-- #ifndef MP-WEIXIN -->
<view @click="toggle()"> <view @click="toggle()">
<jp-cropper-watermark :watermarkType="1" mode="ratio" :width="300" :height="500" :maxWidth="1080" :maxHeight="1920" :url="url" @cancel="oncancel" @ok="onok"></jp-cropper-watermark> <jp-cropper-watermark :watermarkType="1" mode="ratio" :width="530" :height="750" :handleWH="false" :maxWidth="1080" :maxHeight="1920" :url="url" @cancel="oncancel" @ok="onok"></jp-cropper-watermark>
<image src="../../static/logo.png" v-if="avatar==null" mode="" <image src="../../static/logo.png" v-if="avatar==null" mode=""
style="width: 111rpx;height: 111rpx;border-radius: 50%;"></image> style="width: 111rpx;height: 111rpx;border-radius: 50%;"></image>
<image v-else :src="avatar" mode="" style="width: 111rpx;height: 111rpx;border-radius: 50%;"> <image v-else :src="avatar" mode="" style="width: 111rpx;height: 111rpx;border-radius: 50%;">