🎨chore: 使用 oxlint, oxfmt&格式化代码

This commit is contained in:
2026-02-08 21:16:25 +08:00
parent 9d35c6a9d8
commit 3a801ba016
78 changed files with 3367 additions and 1468 deletions

View File

@@ -2,26 +2,29 @@
const props = defineProps({
gradient: {
type: String,
default: '90deg, #FFC0CB 0%, #FFC0CB 100%'
default: '90deg, #FFC0CB 0%, #FFC0CB 100%',
},
aspect: {
type: String,
default: '16/9'
}
default: '16/9',
},
})
const elem = ref<HTMLElement>()
const size = computed(() => {
return {
width: elem.value?.getBoundingClientRect().width.toFixed(0),
height: elem.value?.getBoundingClientRect().height.toFixed(0)
height: elem.value?.getBoundingClientRect().height.toFixed(0),
}
})
</script>
<template>
<div ref="elem" class="gradient-background flex justify-center items-center"
:style="`aspect-ratio: ${aspect};`">
<div
ref="elem"
class="gradient-background flex justify-center items-center"
:style="`aspect-ratio: ${aspect};`"
>
<ClientOnly>
<h1 class="text-white/80 drop-shadow-2xl text-sm font-bold">
{{ size.width }} x {{ size.height }}
@@ -35,4 +38,4 @@ const size = computed(() => {
@apply rounded-lg;
@apply bg-gradient-to-r from-indigo-800 to-purple-600;
}
</style>
</style>