🎨 Refactor prop definitions to use explicit types and default values
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user