EducationTiming.vue 848 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <v-container :fluid="true" class="container">
  3. <v-row>
  4. <v-col cols="12" sm="6">
  5. <UiInputNumber
  6. v-model="localEntity.timing"
  7. field="educationTiming"
  8. :rules="getAsserts('timing')"
  9. />
  10. </v-col>
  11. </v-row>
  12. </v-container>
  13. </template>
  14. <script setup lang="ts">
  15. import {getAssertUtils} from "~/services/asserts/getAssertUtils";
  16. import EducationTiming from "~/models/Education/EducationTiming";
  17. const props = defineProps<{
  18. entity: EducationTiming
  19. }>()
  20. const emit = defineEmits([
  21. 'update:entity',
  22. ])
  23. // Pour éviter l'erreur eslint "Unexpected mutation of "modelValue" prop"
  24. const localEntity = computed({
  25. get: () => props.entity,
  26. set: (value) => emit('update:entity', value)
  27. })
  28. const getAsserts = (key) => getAssertUtils(EducationTiming.getAsserts(), key)
  29. </script>