🎨 Refactor props definition and add inheritAttrs option in ProfessorPokeball component

This commit is contained in:
2026-01-28 05:03:52 +00:00
parent fd45934b2a
commit 75093f1daa

View File

@@ -19,12 +19,21 @@
</template> </template>
<script setup> <script setup>
import { defineProps, withDefaults } from 'vue'; const props = withDefaults(
defineProps<{
size?: string;
color?: string;
animate?: boolean;
}>(),
{
size: '100px',
color: '#ebebeb',
animate: false
}
);
const props = withDefaults(defineProps(), { defineOptions({
size: '100px', inheritAttrs: false
color: '#ebebeb',
animate: false
}); });
</script> </script>