【更新】头像剪裁组件增加默认剪裁宽度和高度属性

pull/284/head
xuyuxiang 2025-09-14 21:29:41 +08:00
parent f4d875ae3c
commit b0b2d67fce
1 changed files with 11 additions and 3 deletions

View File

@ -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: {},