🎨 Refactor prop definitions to use explicit types and default values

This commit is contained in:
2026-01-28 05:07:57 +00:00
parent 35ebd6cf32
commit 586582da54

View File

@@ -19,14 +19,19 @@
</template>
<script setup>
const props = withDefaults(defineProps<{
size?: string;
color?: string;
animate?: boolean;
}>(), {
size: '100px',
color: '#ebebeb',
animate: false
const props = defineProps({
size: {
type: String,
default: '100px'
},
color: {
type: String,
default: '#ebebeb'
},
animate: {
type: Boolean,
default: false
}
});
defineOptions({