feat: use withDefaults for FancyCheckbox
This commit is contained in:
parent
0c70aedeb1
commit
b4e9d9437e
@ -21,24 +21,20 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import CheckboxIcon from '@/assets/checkbox.svg?component'
|
import CheckboxIcon from '@/assets/checkbox.svg?component'
|
||||||
|
|
||||||
import BaseCheckbox from '@/components/base/BaseCheckbox.vue'
|
import BaseCheckbox from '@/components/base/BaseCheckbox.vue'
|
||||||
|
|
||||||
defineProps({
|
withDefaults(defineProps<{
|
||||||
modelValue: {
|
modelValue: boolean,
|
||||||
type: Boolean,
|
disabled?: boolean,
|
||||||
},
|
isBlock?: boolean
|
||||||
disabled: {
|
}>(), {
|
||||||
type: Boolean,
|
modelValue: false,
|
||||||
},
|
disabled: false,
|
||||||
isBlock: {
|
isBlock: false,
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(event: 'update:modelValue', value: boolean): void
|
'update:modelValue': [value: boolean]
|
||||||
}>()
|
}>()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user