🎨 Refactor props definition and add inheritAttrs option in ProfessorPokeball component
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user