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
|
@ -12,9 +12,9 @@ type Props = {
|
|||
label : string
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
type : 'a'
|
||||
})
|
||||
const {
|
||||
type = 'a'
|
||||
} = defineProps<Props>()
|
||||
|
||||
const actualProps = () => {
|
||||
if (props.type === 'a') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue