feat: 提交页面

This commit is contained in:
2026-04-27 16:58:45 +08:00
parent a385aba49f
commit 05178c4cb0
4 changed files with 107 additions and 53 deletions

View File

@@ -7,10 +7,9 @@
crossOrigin="Anonymous"
:autoCrop="true"
:fixedNumber="ratio"
:fixed="type !== 'apparel' && isProduct"
:fixed="isProduct ? type !== 'apparel' : true"
movable
centerBox
:fixedBox="fixedBox"
@realTime="onChange"
outputType="png"
v-bind="bindProps"
@@ -52,10 +51,6 @@ const props = defineProps({
type: Boolean,
default: false
},
fixedBox: {
type: Boolean,
default: true
},
type: {
type: String,
default: () => ""
@@ -73,12 +68,12 @@ const autoCropHeight = computed(() => {
const bindProps = computed(() => {
// :autoCropWidth="isProduct ? undefined : type === 'cover' ? 297 : 242"
// :autoCropHeight="isProduct ? undefined : autoCropHeight"
if (props.isProduct) {
return {
autoCropHeight: autoCropHeight.value,
autoCropWidth: props.type === "cover" ? 297 : 242
}
}
// if (props.isProduct) {
// return {
// autoCropHeight: autoCropHeight.value,
// autoCropWidth: props.type === "cover" ? 297 : 242
// }
// }
})
const onChange = (data) => {