mirror of https://gitee.com/xiaonuobase/snowy
【更新】头像剪裁组件增加默认剪裁宽度和高度属性
parent
f4d875ae3c
commit
b0b2d67fce
|
@ -85,7 +85,15 @@
|
|||
circle: {
|
||||
type: Boolean,
|
||||
default: () => false
|
||||
}
|
||||
},
|
||||
autoCropWidth: {
|
||||
type: Number,
|
||||
default: () => 100
|
||||
},
|
||||
autoCropHeight: {
|
||||
type: Number,
|
||||
default: () => 100
|
||||
},
|
||||
})
|
||||
const emit = defineEmits({ successful: null })
|
||||
const visible = ref(false)
|
||||
|
@ -99,8 +107,8 @@
|
|||
original: false,
|
||||
canMoveBox: true,
|
||||
autoCrop: true,
|
||||
autoCropWidth: 200,
|
||||
autoCropHeight: 200,
|
||||
autoCropWidth: props.autoCropWidth,
|
||||
autoCropHeight: props.autoCropHeight,
|
||||
centerBox: false,
|
||||
high: false,
|
||||
cropData: {},
|
||||
|
|
Loading…
Reference in New Issue