Skip to content

Commit 656b74b

Browse files
committed
fix: small fixes
1 parent 671ce4f commit 656b74b

File tree

4 files changed

+43
-30
lines changed

4 files changed

+43
-30
lines changed

src/views/base/Switches.vue

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@
2020
required
2121
/> -->
2222
<!-- <CSwitch class="mx-1" variant="primary" shape="3d" outline="alt" v-bind="labelIcon" type="radio" name="radio" checked.sync="radio" trueValue="primary"/> -->
23-
<CSwitch class="mx-1"
24-
:key="key"
25-
:variant="variant"
26-
shape="3d"
27-
outline="alt"
28-
v-bind="labelIcon"
29-
type="radio"
30-
name="radio"
31-
:checked.sync="radio"
32-
:value="variant"
33-
v-for="(variant, key) in ['primary','secondary','warning','success','info','danger','light','dark']"
23+
<CSwitch
24+
class="mx-1"
25+
:key="key"
26+
:variant="variant"
27+
shape="3d"
28+
outline="alt"
29+
v-bind="labelIcon"
30+
type="radio"
31+
name="radio"
32+
:checked.sync="radio"
33+
:value="variant"
34+
v-for="(variant, key) in variants"
3435
/>
3536
</CCardBody>
3637
</CCard>
@@ -520,6 +521,9 @@ export default {
520521
name: 'switches',
521522
data () {
522523
return {
524+
variants:[
525+
'primary','secondary','warning','success','info','danger','light','dark'
526+
],
523527
fields: [
524528
{key: 'size'},
525529
{key: 'example'},

src/views/base/Tables.vue

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
<CRow>
44
<CCol sm="12">
55
<CCard headerHtml="CTable power presentation" bodyWrapper>
6-
<CTable :items="items.slice(0)"
7-
:fields="fields"
8-
:perPage="6"
9-
indexColumn
10-
filterRow
11-
optionsRow
12-
loadings
13-
hover
14-
:defaultSorter="{ name:'username', direction:'desc'}"
15-
:defaultColumnFilter="{ role:'staff' }"
6+
<CTable
7+
:items="getItems()"
8+
:fields="fields"
9+
:perPage="6"
10+
:activePage="page"
11+
indexColumn
12+
filterRow
13+
optionsRow="noFilter"
14+
loadings
15+
hover
16+
:defaultColumnFilter="{ role:'staff' }"
17+
darkHeader
18+
footer
19+
:pagination="{size: 'lg'}"
1620
>
1721
<template #index-column="{index}">
1822
<td
@@ -53,6 +57,11 @@
5357
</CCollapse>
5458
</template>
5559
</CTable>
60+
<!-- <CPagination
61+
v-show="pages > 1"
62+
:activePage.sync="page"
63+
:pages="pages"
64+
/> -->
5665
</CCard>
5766
</CCol>
5867
</CRow>
@@ -83,15 +92,15 @@
8392
:items="getItems()"
8493
caption="<i class='fa fa-align-justify'></i> Simple Table"
8594
/>
86-
</CCol><!--/.col-->
95+
</CCol>
8796

8897
<CCol lg="6">
8998
<CTableWrapper
9099
:items="getItems()"
91100
striped
92101
caption="<i class='fa fa-align-justify'></i> Striped Table"
93102
/>
94-
</CCol><!--/.col-->
103+
</CCol>
95104
</CRow>
96105

97106
<CRow>
@@ -101,7 +110,7 @@
101110
small
102111
caption="<i class='fa fa-align-justify'></i> Condensed Table"
103112
/>
104-
</CCol><!--/.col-->
113+
</CCol>
105114

106115
<CCol lg="6">
107116
<CTableWrapper
@@ -110,7 +119,7 @@
110119
bordered
111120
caption="<i class='fa fa-align-justify'></i> Bordered Table"
112121
/>
113-
</CCol><!--/.col-->
122+
</CCol>
114123
</CRow>
115124

116125
<CRow>
@@ -194,7 +203,7 @@ export default {
194203
fields: fields,
195204
page: 1,
196205
pages: null,
197-
details: []
206+
details: [],
198207
}
199208
},
200209
methods: {

src/views/buttons/BrandButtons.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
</p>
9696
</CCardBody>
9797
</CCard>
98-
</CCol><!--/.col-->
98+
</CCol>
9999
<CCol col="12">
100100
<CCard>
101101
<CCardHeader>
@@ -190,7 +190,7 @@
190190
</p>
191191
</CCardBody>
192192
</CCard>
193-
</CCol><!--/.col-->
193+
</CCol>
194194

195195
<CCol col="12">
196196
<CCard>
@@ -286,7 +286,7 @@
286286
</p>
287287
</CCardBody>
288288
</CCard>
289-
</CCol><!--/.col-->
289+
</CCol>
290290
</CRow>
291291
</div>
292292
</template>

src/views/notifications/Modals.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</CButton>
3939
</CCardBody>
4040
</CCard>
41-
</CCol><!--/.col-->
41+
</CCol>
4242
</CRow>
4343
</div>
4444
<!-- Modal Component -->

0 commit comments

Comments
 (0)