fix: update default modelValue for Pin input

This commit is contained in:
romanhrynevych 2024-05-10 09:54:55 +03:00
parent 0721d1c864
commit 28924636bf
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,9 @@ import { type HTMLAttributes, computed } from 'vue'
import { PinInputRoot, type PinInputRootEmits, type PinInputRootProps, useForwardPropsEmits } from 'radix-vue'
import { cn } from '@/lib/utils'
const props = defineProps<PinInputRootProps & { class?: HTMLAttributes['class'] }>()
const props = withDefaults(defineProps<PinInputRootProps & { class?: HTMLAttributes['class'] }>(), {
modelValue: () => [],
})
const emits = defineEmits<PinInputRootEmits>()
const delegatedProps = computed(() => {

View File

@ -3,7 +3,9 @@ import { type HTMLAttributes, computed } from 'vue'
import { PinInputRoot, type PinInputRootEmits, type PinInputRootProps, useForwardPropsEmits } from 'radix-vue'
import { cn } from '@/lib/utils'
const props = defineProps<PinInputRootProps & { class?: HTMLAttributes['class'] }>()
const props = withDefaults(defineProps<PinInputRootProps & { class?: HTMLAttributes['class'] }>(), {
modelValue: () => [],
})
const emits = defineEmits<PinInputRootEmits>()
const delegatedProps = computed(() => {