<template> <div> <v-treeview :items="items"> <template slot="label" slot-scope="props"> <router-link :to="props.item.to" v-if="props.item.to">{{ props.item.name }}</router-link> <span v-else>{{ props.item.name }}</span> </template> </v-treeview> </div> </template>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter