fix: small fixes
This commit is contained in:
+15
-11
@@ -20,17 +20,18 @@
|
|||||||
required
|
required
|
||||||
/> -->
|
/> -->
|
||||||
<!-- <CSwitch class="mx-1" variant="primary" shape="3d" outline="alt" v-bind="labelIcon" type="radio" name="radio" checked.sync="radio" trueValue="primary"/> -->
|
<!-- <CSwitch class="mx-1" variant="primary" shape="3d" outline="alt" v-bind="labelIcon" type="radio" name="radio" checked.sync="radio" trueValue="primary"/> -->
|
||||||
<CSwitch class="mx-1"
|
<CSwitch
|
||||||
:key="key"
|
class="mx-1"
|
||||||
:variant="variant"
|
:key="key"
|
||||||
shape="3d"
|
:variant="variant"
|
||||||
outline="alt"
|
shape="3d"
|
||||||
v-bind="labelIcon"
|
outline="alt"
|
||||||
type="radio"
|
v-bind="labelIcon"
|
||||||
name="radio"
|
type="radio"
|
||||||
:checked.sync="radio"
|
name="radio"
|
||||||
:value="variant"
|
:checked.sync="radio"
|
||||||
v-for="(variant, key) in ['primary','secondary','warning','success','info','danger','light','dark']"
|
:value="variant"
|
||||||
|
v-for="(variant, key) in variants"
|
||||||
/>
|
/>
|
||||||
</CCardBody>
|
</CCardBody>
|
||||||
</CCard>
|
</CCard>
|
||||||
@@ -520,6 +521,9 @@ export default {
|
|||||||
name: 'switches',
|
name: 'switches',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
variants:[
|
||||||
|
'primary','secondary','warning','success','info','danger','light','dark'
|
||||||
|
],
|
||||||
fields: [
|
fields: [
|
||||||
{key: 'size'},
|
{key: 'size'},
|
||||||
{key: 'example'},
|
{key: 'example'},
|
||||||
|
|||||||
+24
-15
@@ -3,16 +3,20 @@
|
|||||||
<CRow>
|
<CRow>
|
||||||
<CCol sm="12">
|
<CCol sm="12">
|
||||||
<CCard headerHtml="CTable power presentation" bodyWrapper>
|
<CCard headerHtml="CTable power presentation" bodyWrapper>
|
||||||
<CTable :items="items.slice(0)"
|
<CTable
|
||||||
:fields="fields"
|
:items="getItems()"
|
||||||
:perPage="6"
|
:fields="fields"
|
||||||
indexColumn
|
:perPage="6"
|
||||||
filterRow
|
:activePage="page"
|
||||||
optionsRow
|
indexColumn
|
||||||
loadings
|
filterRow
|
||||||
hover
|
optionsRow="noFilter"
|
||||||
:defaultSorter="{ name:'username', direction:'desc'}"
|
loadings
|
||||||
:defaultColumnFilter="{ role:'staff' }"
|
hover
|
||||||
|
:defaultColumnFilter="{ role:'staff' }"
|
||||||
|
darkHeader
|
||||||
|
footer
|
||||||
|
:pagination="{size: 'lg'}"
|
||||||
>
|
>
|
||||||
<template #index-column="{index}">
|
<template #index-column="{index}">
|
||||||
<td
|
<td
|
||||||
@@ -53,6 +57,11 @@
|
|||||||
</CCollapse>
|
</CCollapse>
|
||||||
</template>
|
</template>
|
||||||
</CTable>
|
</CTable>
|
||||||
|
<!-- <CPagination
|
||||||
|
v-show="pages > 1"
|
||||||
|
:activePage.sync="page"
|
||||||
|
:pages="pages"
|
||||||
|
/> -->
|
||||||
</CCard>
|
</CCard>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
@@ -83,7 +92,7 @@
|
|||||||
:items="getItems()"
|
:items="getItems()"
|
||||||
caption="<i class='fa fa-align-justify'></i> Simple Table"
|
caption="<i class='fa fa-align-justify'></i> Simple Table"
|
||||||
/>
|
/>
|
||||||
</CCol><!--/.col-->
|
</CCol>
|
||||||
|
|
||||||
<CCol lg="6">
|
<CCol lg="6">
|
||||||
<CTableWrapper
|
<CTableWrapper
|
||||||
@@ -91,7 +100,7 @@
|
|||||||
striped
|
striped
|
||||||
caption="<i class='fa fa-align-justify'></i> Striped Table"
|
caption="<i class='fa fa-align-justify'></i> Striped Table"
|
||||||
/>
|
/>
|
||||||
</CCol><!--/.col-->
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
|
|
||||||
<CRow>
|
<CRow>
|
||||||
@@ -101,7 +110,7 @@
|
|||||||
small
|
small
|
||||||
caption="<i class='fa fa-align-justify'></i> Condensed Table"
|
caption="<i class='fa fa-align-justify'></i> Condensed Table"
|
||||||
/>
|
/>
|
||||||
</CCol><!--/.col-->
|
</CCol>
|
||||||
|
|
||||||
<CCol lg="6">
|
<CCol lg="6">
|
||||||
<CTableWrapper
|
<CTableWrapper
|
||||||
@@ -110,7 +119,7 @@
|
|||||||
bordered
|
bordered
|
||||||
caption="<i class='fa fa-align-justify'></i> Bordered Table"
|
caption="<i class='fa fa-align-justify'></i> Bordered Table"
|
||||||
/>
|
/>
|
||||||
</CCol><!--/.col-->
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
|
|
||||||
<CRow>
|
<CRow>
|
||||||
@@ -194,7 +203,7 @@ export default {
|
|||||||
fields: fields,
|
fields: fields,
|
||||||
page: 1,
|
page: 1,
|
||||||
pages: null,
|
pages: null,
|
||||||
details: []
|
details: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</CCardBody>
|
</CCardBody>
|
||||||
</CCard>
|
</CCard>
|
||||||
</CCol><!--/.col-->
|
</CCol>
|
||||||
<CCol col="12">
|
<CCol col="12">
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</CCardBody>
|
</CCardBody>
|
||||||
</CCard>
|
</CCard>
|
||||||
</CCol><!--/.col-->
|
</CCol>
|
||||||
|
|
||||||
<CCol col="12">
|
<CCol col="12">
|
||||||
<CCard>
|
<CCard>
|
||||||
@@ -286,7 +286,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</CCardBody>
|
</CCardBody>
|
||||||
</CCard>
|
</CCard>
|
||||||
</CCol><!--/.col-->
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
</CButton>
|
</CButton>
|
||||||
</CCardBody>
|
</CCardBody>
|
||||||
</CCard>
|
</CCard>
|
||||||
</CCol><!--/.col-->
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
</div>
|
</div>
|
||||||
<!-- Modal Component -->
|
<!-- Modal Component -->
|
||||||
|
|||||||
Reference in New Issue
Block a user