🎨 Refactor prop definitions to use explicit types and default values
This commit is contained in:
@@ -19,14 +19,19 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
const props = withDefaults(defineProps<{
|
const props = defineProps({
|
||||||
size?: string;
|
size: {
|
||||||
color?: string;
|
type: String,
|
||||||
animate?: boolean;
|
default: '100px'
|
||||||
}>(), {
|
},
|
||||||
size: '100px',
|
color: {
|
||||||
color: '#ebebeb',
|
type: String,
|
||||||
animate: false
|
default: '#ebebeb'
|
||||||
|
},
|
||||||
|
animate: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
|
|||||||
Reference in New Issue
Block a user