diff --git a/dev/app.vue b/dev/app.vue index fa9d446f..afc90333 100644 --- a/dev/app.vue +++ b/dev/app.vue @@ -40,9 +40,10 @@ import {each, isFunction, cloneDeep, merge} from 'lodash'; + Vue.use(VueFormGenerator); + export default { components: { - "VueFormGenerator": VueFormGenerator.component, DataTable }, diff --git a/dev/dataTable.vue b/dev/dataTable.vue index dd707579..119a1842 100644 --- a/dev/dataTable.vue +++ b/dev/dataTable.vue @@ -6,22 +6,29 @@ th Name th E-mail th Country + th Role + th Status tbody tr(v-for="row in rows", @click="select($event, row)", :class="{ active: isSelected(row) }") td {{ row.id }} td + img(:src="row.avatar") | {{ row.name }} .label.label-warning(v-if="!row.status") Inactive td {{ row.email }} td {{ row.address.country }} + td {{ getRoleName(row) }} + td + i.fa(:class=" row.status? 'fa-check' : 'fa-ban' ") @@ -44,6 +56,15 @@ .table { tr { cursor: pointer; + + td { + img { + width: 32px; + height: 32px; + border-radius: 100%; + margin-right: 0.4em; + } + } } }