编辑我得头像:增加参数handleWH,如果为false则传多少宽高,最终裁剪后的宽高就是多少
This commit is contained in:
parent
f071a4c7ee
commit
7e60c279d2
|
@ -15,7 +15,7 @@
|
|||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<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=""
|
||||
style="width: 111rpx;height: 111rpx;border-radius: 50%;"></image>
|
||||
<image v-else :src="avatar" mode="" style="width: 111rpx;height: 111rpx;border-radius: 50%;">
|
||||
|
|
Loading…
Reference in New Issue