xyxiao001 / vue-cropper

A simple picture clipping plugin for vue
https://github.xyxiao.cn/vue-cropper/docs/vue3.html
MIT License
4.35k stars 706 forks source link

设置autoCropHeight不生效 #375

Closed 86driver closed 4 years ago

86driver commented 4 years ago
        <vue-cropper
          ref="cropper"
          :info="false"
          :img="cutterImg"
          :output-size="option.size"
          :output-type="option.outputType"
          :full="option.full"
          :fixed="fixed"
          :can-move="option.canMove"
          :can-move-box="option.canMoveBox"
          :fixed-box="option.fixedBox"
          :original="option.original"
          :auto-crop="option.autoCrop"
          :auto-crop-width="option.autoCropWidth"
          :auto-crop-height="option.autoCropHeight"
          :center-box="option.centerBox"
          :fixed-number="fixedNumber"
          :high="option.high"
          @real-time="realTime"
          mode="cover"
        ></vue-cropper>

data() { return { cutterImg: '', fixed: true, fixedNumber: [160, 160], option: { size: 1, full: false, outputType: 'png', canMove: true, fixedBox: true, original: true, canMoveBox: false, autoCrop: true, centerBox: true, high: true, autoCropWidth: 160, autoCropHeight: 160, }, } },

初始化之后展示的截图框大小为75*75

86driver commented 4 years ago
已解决
xyxiao001 commented 4 years ago

fixedNumber 会有冲突