refactor: minor code refactors and fixes, update packages

This commit is contained in:
woothu
2020-03-19 14:09:01 +01:00
parent e1972c2cea
commit 0d2b619677
10 changed files with 575 additions and 671 deletions
+11 -17
View File
@@ -184,7 +184,7 @@
disabled
/>
<template v-for="(name, key) in checkboxNames">
<div class="form-group form-row" :key="name">
<CRow form class="form-group" :key="name">
<CCol tag="label" sm="3" class="col-form-label">
{{name}}
</CCol>
@@ -200,27 +200,21 @@
:inline="key % 2 === 1"
/>
</CCol>
</div>
</CRow>
</template>
<template v-for="(name, key) in radioNames">
<div class="form-row form-group" :key="name">
<CRow form class="form-group" :key="name">
<CCol sm="3">
{{name}}
</CCol>
<CCol sm="9" :class="key % 2 === 1 ? 'form-inline' : ''">
<CInputRadio
v-for="(option, optionIndex) in options"
:key="key + option"
:label="option"
type="radio"
:value="option"
:custom="key > 1"
:name="`Option 1${key}`"
:checked="optionIndex === key"
:inline="key % 2 === 1"
/>
</CCol>
</div>
<CInputRadioGroup
class="col-sm-9"
:options="options"
:custom="key > 1"
:checked="`Option ${key}`"
:inline="key % 2 === 1"
/>
</CRow>
</template>
<CInputFile
label="File input"