- Create new unit list and add pages under org-src feature - Implement unit entry form with validation using zod - Update error types to support readonly path property - Refactor field component to use shared error type
18 lines
304 B
Vue
18 lines
304 B
Vue
<script setup lang="ts">
|
|
import type { XErrors } from '~/types/error'
|
|
|
|
defineProps<{
|
|
id?: string
|
|
errors?: XErrors
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div class="grow">
|
|
<slot />
|
|
<div v-if="id && errors?.[id]" class="field-error-info">
|
|
{{ errors[id]?.message }}
|
|
</div>
|
|
</div>
|
|
</template>
|