2017-05-09 19:10:19 -04:00
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
groups: {
|
2017-05-23 19:01:47 -04:00
|
|
|
type: Object,
|
2017-05-09 19:10:19 -04:00
|
|
|
required: true,
|
|
|
|
},
|
2017-05-24 22:04:31 -04:00
|
|
|
baseGroup: {
|
|
|
|
type: Object,
|
|
|
|
required: false,
|
2017-06-07 04:45:48 -04:00
|
|
|
default: () => ({}),
|
2017-05-24 22:04:31 -04:00
|
|
|
},
|
2017-05-09 19:10:19 -04:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2017-05-31 16:33:27 -04:00
|
|
|
<ul class="content-list group-list-tree">
|
2017-06-07 04:45:48 -04:00
|
|
|
<group-item
|
|
|
|
v-for="(group, index) in groups"
|
|
|
|
:key="index"
|
|
|
|
:group="group"
|
|
|
|
:base-group="baseGroup"
|
|
|
|
:collection="groups"
|
|
|
|
/>
|
2017-05-09 19:10:19 -04:00
|
|
|
</ul>
|
|
|
|
</template>
|