Mercurial > gemma
diff client/src/components/ui/UITableBody.vue @ 2462:9ae2a2f758bb
client: make use of new table header/body components
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 04 Mar 2019 14:50:23 +0100 |
parents | 27d3e9eda8b6 |
children | 4bcb26542767 |
line wrap: on
line diff
--- a/client/src/components/ui/UITableBody.vue Mon Mar 04 13:53:09 2019 +0100 +++ b/client/src/components/ui/UITableBody.vue Mon Mar 04 14:50:23 2019 +0100 @@ -8,7 +8,7 @@ > <div v-for="(item, index) in data" - :key="index" + :key="key(index)" :class="['border-top row mx-0', { active: active === item }]" > <slot :item="item" :index="index"></slot> @@ -46,6 +46,11 @@ active: { type: [Object, Array] } + }, + methods: { + key(index) { + return index; + } } }; </script>