mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-22 22:59:14 +08:00
Update cropper.html
This commit is contained in:
parent
d79b93b9e1
commit
f33cdcc5de
@ -35,9 +35,9 @@
|
||||
|
||||
// 初始化图片背景
|
||||
cropper = new Cropper(image, options = {
|
||||
aspectRatio: 1, ready() {
|
||||
viewMode: 1, aspectRatio: 1, ready: function () {
|
||||
if (typeof defaData === 'object') cropper.setData(defaData);
|
||||
}, crop() {
|
||||
}, crop: function () {
|
||||
$('#inputImage').val(image.src);
|
||||
$('#inputData').val(JSON.stringify(cropper.getData()));
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user