refactor: small modifications in CFormSelect components

This commit is contained in:
woothu
2019-04-15 17:13:50 +02:00
parent 4c7d2967de
commit 671ce4f97b
+9 -3
View File
@@ -153,14 +153,15 @@
placeholder="Please select" placeholder="Please select"
/> />
<CFormSelect <CFormSelect
label="Select" label="Large select"
size="lg" size="lg"
horizontal horizontal
:options="options" :value.sync="selectedOption"
:options="selectOptions"
placeholder="Please select" placeholder="Please select"
/> />
<CFormSelect <CFormSelect
label="Select" label="Small select"
size="sm" size="sm"
horizontal horizontal
:options="options" :options="options"
@@ -843,6 +844,11 @@ export default {
testkkk: 2, testkkk: 2,
horizontal: { label:'col-3', input:'col-9' }, horizontal: { label:'col-3', input:'col-9' },
options: ['Option 1', 'Option 2', 'Option 3'], options: ['Option 1', 'Option 2', 'Option 3'],
selectOptions: [
'Option 1', 'Option 2', 'Option 3',
{ value: ['some value', 'another value'], label: 'Option 4' }],
selectedOption: ['some value', 'another value'],
formCollapsed: true, formCollapsed: true,
checkboxNames: ['Checkboxes', 'Inline Checkboxes', checkboxNames: ['Checkboxes', 'Inline Checkboxes',
'Checkboxes - custom', 'Inline Checkboxes - custom'], 'Checkboxes - custom', 'Inline Checkboxes - custom'],