c3lf-system-3/src/components/Table.vue

23 lines
550 B
Vue
Raw Normal View History

2019-11-14 03:37:35 +00:00
<template>
<table class="table table-striped table-dark">
<thead>
<tr>
<th scope="col" v-for="(column, index) in columns" :key="index">{{ column.name }}</th>
</tr>
</thead>
</table>
</template>
<script>
export default {
name: 'Table',
data: () => ({
columns: [
{ name: 'uid', sortFn: (items) => items },
{ name: 'description', sortFn: (items) => items },
{ name: 'box', sortFn: (items) => items },
{ name: 'image', sortFn: (items) => items }
]
})
};
</script>