mirror of
https://gitee.com/xiaonuobase/snowy
synced 2025-12-15 11:03:57 +08:00
【更新】头像剪裁组件增加默认剪裁宽度和高度属性
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user