diff --git a/src/App.vue b/src/App.vue index 1489502..d41d711 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,20 +1,10 @@ diff --git a/src/components/CTA/SelectField/SelectField.story.vue b/src/components/CTA/SelectField/SelectField.story.vue index 7ada946..7a554e0 100644 --- a/src/components/CTA/SelectField/SelectField.story.vue +++ b/src/components/CTA/SelectField/SelectField.story.vue @@ -7,6 +7,9 @@ + + +
@@ -14,6 +17,7 @@ :options="options" :default="controls.default" :title="controls.title" + :isRequired="controls.isRequired" @update:modelValue="logEvent('update', $event)" />
@@ -29,6 +33,7 @@ interface Controls { options: SelectFieldOption[] default: string title: string + isRequired: boolean } const controls = reactive({ @@ -43,7 +48,8 @@ const controls = reactive({ { value: 'Jours', label: 'Jours' } ], default: 'Mois', - title: 'Date' + title: 'Date', + isRequired: true }) const options = computed(() => controls.options) diff --git a/src/components/CTA/SelectField/SelectField.vue b/src/components/CTA/SelectField/SelectField.vue index a851447..41ab485 100644 --- a/src/components/CTA/SelectField/SelectField.vue +++ b/src/components/CTA/SelectField/SelectField.vue @@ -1,7 +1,7 @@