CHANGE: remove withDefaults
Remove with defaults as it is no longer needed
This commit is contained in:
parent
41a582fea4
commit
c82262e02d
2 changed files with 8 additions and 7 deletions
|
@ -17,10 +17,11 @@ type Props = {
|
|||
size?: 's' | 'm' | 'l'
|
||||
}
|
||||
|
||||
const {name, size, width} = withDefaults(defineProps<Props>(), {
|
||||
size: 'm',
|
||||
width: 50,
|
||||
})
|
||||
const {
|
||||
name,
|
||||
size = 'm',
|
||||
width = 50,
|
||||
} = defineProps<Props>()
|
||||
|
||||
const sizes = {
|
||||
s: 15,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue