Skip to content

Commit 671ce4f

Browse files
committed
refactor: small modifications in CFormSelect components
1 parent 4c7d296 commit 671ce4f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/views/base/Forms.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,15 @@
153153
placeholder="Please select"
154154
/>
155155
<CFormSelect
156-
label="Select"
156+
label="Large select"
157157
size="lg"
158158
horizontal
159-
:options="options"
159+
:value.sync="selectedOption"
160+
:options="selectOptions"
160161
placeholder="Please select"
161162
/>
162163
<CFormSelect
163-
label="Select"
164+
label="Small select"
164165
size="sm"
165166
horizontal
166167
:options="options"
@@ -843,6 +844,11 @@ export default {
843844
testkkk: 2,
844845
horizontal: { label:'col-3', input:'col-9' },
845846
options: ['Option 1', 'Option 2', 'Option 3'],
847+
selectOptions: [
848+
'Option 1', 'Option 2', 'Option 3',
849+
{ value: ['some value', 'another value'], label: 'Option 4' }],
850+
selectedOption: ['some value', 'another value'],
851+
846852
formCollapsed: true,
847853
checkboxNames: ['Checkboxes', 'Inline Checkboxes',
848854
'Checkboxes - custom', 'Inline Checkboxes - custom'],

0 commit comments

Comments
 (0)