wangfukang 3 years ago
parent
commit
c710f4c6ba
  1. 7
      package1/cropper/cropper.vue

7
package1/cropper/cropper.vue

@ -1,8 +1,8 @@
<template>
<view>
<view style="width:100%;height:500rpx;">
<!-- <image-cropper id="image-cropper" @load="cropperload" @imageload="loadimage" @tapcut="clickcut" :limit_move="{{limit_move}}" :disable_rotate="{{disable_rotate}}" :width="{{width}}" :height="{{height}}" :imgSrc="{{src}}" :angle="{{angle}}" :disable_width="{{disable_width}}" :max_width="{{max_width}}" :max_height="{{max_height}}" :disable_height="{{disable_height}}" :disable_ratio="{{disable_ratio}}">
</image-cropper> -->
<image-cropper id="image-cropper" @load="cropperload" @imageload="loadimage" @tapcut="clickcut" limit_move="{{limit_move}}" disable_rotate="{{disable_rotate}}" width="{{width}}" height="{{height}}" imgSrc="{{src}}" angle="{{angle}}" disable_width="{{disable_width}}" max_width="{{max_width}}" max_height="{{max_height}}" disable_height="{{disable_height}}" disable_ratio="{{disable_ratio}}">
</image-cropper>
</view>
<text class="hint">点击中间裁剪框可查看裁剪后的图片</text>
<view class='bottom'>
@ -84,10 +84,7 @@
})
},
setWidth(e) {
this.width= e.detail.value < 10 ? 10 : e.detail.value
this.cut_left= this.cropper.data.cut_left
},

Loading…
Cancel
Save