Newer
Older
<q-tree style="cursor: pointer;"
label-key="labelKey"
selected-color="grey"
text-color="black"
>
</q-tree>
</div>
</template>
<script>
import { fasCaretRight } from '@quasar/extras/fontawesome-v5';
export default {
name: 'Treeview',
props: {
manifests: Array,
tree: Array,
},
data() {
return {
expanded: ['The Story and Proverbs of Ahikar the Wise'],
selected: null,
};
},
created() {
this.fasCaretRight = fasCaretRight;
},
mounted() {
this.$root.$on('update-sequence-index', (index) => {
this.$root.$on('update-item', (item) => {
this.selected = item;
});