feat: use withDefaults for BaseCheckbox
This commit is contained in:
parent
66be016a7f
commit
94a907b009
@ -30,15 +30,11 @@
|
|||||||
import {ref} from 'vue'
|
import {ref} from 'vue'
|
||||||
import {createRandomID} from '@/helpers/randomId'
|
import {createRandomID} from '@/helpers/randomId'
|
||||||
|
|
||||||
defineProps({
|
withDefaults(defineProps<{
|
||||||
modelValue: {
|
modelValue?: boolean,
|
||||||
type: Boolean,
|
disabled: boolean,
|
||||||
default: false,
|
}>(), {
|
||||||
},
|
modelValue: false,
|
||||||
disabled: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user