| 1234567891011121314151617181920212223242526272829303132 |
- <template>
- <v-container :fluid="true" class="container">
- <v-row>
- <v-col cols="12" sm="6">
- <UiInputNumber
- v-model="localEntity.timing"
- field="educationTiming"
- :rules="getAsserts('timing')"
- />
- </v-col>
- </v-row>
- </v-container>
- </template>
- <script setup lang="ts">
- import { getAssertUtils } from '~/services/asserts/getAssertUtils'
- import EducationTiming from '~/models/Education/EducationTiming'
- const props = defineProps<{
- entity: EducationTiming
- }>()
- const emit = defineEmits(['update:entity'])
- // Pour éviter l'erreur eslint "Unexpected mutation of "modelValue" prop"
- const localEntity = computed({
- get: () => props.entity,
- set: (value) => emit('update:entity', value),
- })
- const getAsserts = (key) => getAssertUtils(EducationTiming.getAsserts(), key)
- </script>
|