mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
chore: use type-based prop
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
<template>
|
||||
<Icon :name="name" />
|
||||
</template>
|
||||
<script lang="ts">
|
||||
export interface IconProps {
|
||||
name: string
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps({
|
||||
name: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
defineProps<IconProps>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Icon :name="name" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user