chore(components): use useId from vue

This commit is contained in:
Benjamin Canac
2024-09-05 16:00:30 +02:00
parent 9c4e8f2dba
commit de0133e177
6 changed files with 12 additions and 18 deletions

View File

@@ -31,9 +31,8 @@ export interface FormSlots {
</script>
<script lang="ts" setup generic="T extends object">
import { provide, inject, nextTick, ref, onUnmounted, onMounted, computed } from 'vue'
import { provide, inject, nextTick, ref, onUnmounted, onMounted, computed, useId } from 'vue'
import { useEventBus } from '@vueuse/core'
import { useId } from '#imports'
import { formOptionsInjectionKey, formInputsInjectionKey, formBusInjectionKey } from '../composables/useFormField'
import { getYupErrors, isYupSchema, getValibotError, isValibotSchema, getZodErrors, isZodSchema, getJoiErrors, isJoiSchema } from '../utils/form'
import { FormValidationException } from '../types/form'