@@ -4,6 +4,7 @@ import { ref } from 'vue'
44import DsfrAlert from ' @/components/DsfrAlert/DsfrAlert.vue'
55import DsfrButton from ' @/components/DsfrButton/DsfrButton.vue'
66import DsfrCheckboxSet from ' @/components/DsfrCheckbox/DsfrCheckboxSet.vue'
7+ import DsfrSelect from ' @/components/DsfrSelect/DsfrSelect.vue'
78import DsfrFileUpload from ' @/components/DsfrFileUpload/DsfrFileUpload.vue'
89import DsfrRadioButtonSet from ' @/components/DsfrRadioButton/DsfrRadioButtonSet.vue'
910import type { DsfrCheckboxSetProps } from ' @/components/DsfrCheckbox/DsfrCheckbox.types'
@@ -21,8 +22,15 @@ const sendFile = () => {
2122 console .log (' filesToUpload:' , filesToUpload .value ) // eslint-disable-line no-console
2223}
2324
25+ const isGood = ref <boolean >()
2426const whatever = ref (' ' )
2527const radioTest = ref (' ' )
28+ const radioTest2 = ref (' ' )
29+
30+ const options = [
31+ { value: true , text: ' Oui' , disabled: false },
32+ { value: false , text: ' Non' , disabled: false },
33+ ]
2634
2735const selectedCheckbox = ref (false )
2836const selectedCheckboxes = ref ([])
@@ -77,16 +85,16 @@ const cbOptions: DsfrCheckboxSetProps['options'] = [
7785 ]"
7886 />
7987 <DsfrRadioButtonSet
80- v-model =" radioTest "
81- name =" radio-123aui "
88+ v-model =" radioTest2 "
89+ name =" radio-123auie "
8290 :options =" [
8391 {
84- label: 'label 1',
92+ label: 'label 2. 1',
8593 value: 1,
8694 required: true,
8795 },
8896 {
89- label: 'label 2',
97+ label: 'label 2.2 ',
9098 value: 2,
9199 },
92100 ]"
@@ -97,6 +105,13 @@ const cbOptions: DsfrCheckboxSetProps['options'] = [
97105 </DsfrRadioButtonSet >
98106 </div >
99107
108+ <DsfrSelect
109+ v-model =" isGood"
110+ required
111+ label =" Est-ce que c’est bon ?"
112+ :options
113+ />
114+
100115 <DsfrButton
101116 type =" submit"
102117 label =" Bouton de soumission du formulaire"
0 commit comments