mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update cropper.html
This commit is contained in:
parent
374d65be49
commit
851c3ff238
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
// 初始化图片背景
|
// 初始化图片背景
|
||||||
cropper = new Cropper(image, options = {
|
cropper = new Cropper(image, options = {
|
||||||
viewMode: 1, aspectRatio: 1, ready: function () {
|
viewMode: 2, aspectRatio: 1, ready: function () {
|
||||||
if (typeof defaData === 'object') cropper.setData(defaData);
|
if (typeof defaData === 'object') cropper.setData(defaData);
|
||||||
}, crop: function () {
|
}, crop: function () {
|
||||||
$('#inputImage').val(image.src);
|
$('#inputImage').val(image.src);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user