refactor: update base views

This commit is contained in:
woothu
2019-11-13 10:34:15 +01:00
parent bc822612da
commit 70058e8c29
11 changed files with 466 additions and 480 deletions
+31 -26
View File
@@ -2,32 +2,37 @@
<CRow>
<CCol col="12" xl="8">
<transition name="slide">
<CCard header-html="Users" body-wrapper>
<CDataTable
hover
striped
:items="items"
:fields="fields"
:items-per-page="perPage"
@row-clicked="rowClicked"
:pagination="$options.paginationProps"
index-column
clickable-rows
>
<template #username="data">
<td>
<strong>{{data.item.username}}</strong>
</td>
</template>
<template #status="data">
<td>
<CBadge :color="getBadge(data.item.status)">
{{data.item.status}}
</CBadge>
</td>
</template>
</CDataTable>
<CCard>
<CCardHeader>
Users
</CCardHeader>
<CCardBody>
<CDataTable
hover
striped
:items="items"
:fields="fields"
:items-per-page="perPage"
@row-clicked="rowClicked"
:pagination="$options.paginationProps"
index-column
clickable-rows
>
<template #username="data">
<td>
<strong>{{data.item.username}}</strong>
</td>
</template>
<template #status="data">
<td>
<CBadge :color="getBadge(data.item.status)">
{{data.item.status}}
</CBadge>
</td>
</template>
</CDataTable>
</CCardBody>
</CCard>
</transition>
</CCol>