Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/User/ListWidget.vue
- This file was added.
<template> | |||||
<list-table :list="list" :current="current" :setup="setup"></list-table> | |||||
</template> | |||||
<script> | |||||
import { ListTable } from '../Widgets/ListTools' | |||||
export default { | |||||
components: { | |||||
ListTable | |||||
}, | |||||
props: { | |||||
list: { type: Array, default: () => [] }, | |||||
current: { type: Object, default: () => null } | |||||
}, | |||||
data() { | |||||
return { | |||||
setup: { | |||||
model: 'user', | |||||
cols: [ | |||||
{ | |||||
prop: 'email', | |||||
icon: 'user', | |||||
label: 'form.primary-email' | |||||
} | |||||
] | |||||
} | |||||
} | |||||
} | |||||
} | |||||
</script> |