Skip to content

Commit 3c631aa

Browse files
committed
docs: 📝 Améliore la doc pour DsfrSelect
1 parent 4288314 commit 3c631aa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/DsfrSelect/DsfrSelect.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
},
1919
options: {
2020
control: 'object',
21-
description: 'Liste des options proposées par le `select` à lui passer sous forme de tableau',
21+
description: 'Liste des options proposées par le `<select>` à lui passer sous forme de tableau de string ou de tableau d’objets avec une propriété `"text"` et une propriété `"value"`',
2222
},
2323
description: {
2424
control: 'text',

types/components/DsfrSelect/DsfrSelect.vue.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<{
1010
default(): any;
1111
};
1212
modelValue: {
13-
type: (StringConstructor | NumberConstructor)[];
13+
type: (StringConstructor | NumberConstructor) | (StringConstructor | NumberConstructor)[];
1414
default: any;
1515
};
1616
label: {
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<{
1919
};
2020
options: {
2121
type: ArrayConstructor;
22-
default: () => SelectOption[];
22+
default: () => (string | SelectOption)[];
2323
};
2424
description: {
2525
type: StringConstructor;
@@ -53,7 +53,7 @@ declare const _default: import('vue').DefineComponent<{
5353
};
5454
options: {
5555
type: ArrayConstructor;
56-
default: () => SelectOption[];
56+
default: () => (string | SelectOption)[];
5757
};
5858
description: {
5959
type: StringConstructor;
@@ -75,7 +75,7 @@ declare const _default: import('vue').DefineComponent<{
7575
required: boolean;
7676
label: string;
7777
disabled: boolean;
78-
options: SelectOption[];
78+
options: (string | SelectOption)[];
7979
modelValue: string | number;
8080
errorMessage: string;
8181
selectId: string;

0 commit comments

Comments
 (0)