|
43 | 43 | :key="item.title" |
44 | 44 | v-model="item.model" |
45 | 45 | > |
| 46 | + |
46 | 47 | <template v-slot:prependIcon> |
47 | 48 | <v-icon size="24" class="mr-0" color="greyTint"> {{ item.icon }} </v-icon> |
48 | 49 | </template> |
|
57 | 58 | </template> |
58 | 59 |
|
59 | 60 | <v-list-item |
| 61 | + v-show="!item.type" |
60 | 62 | v-for="(child, i) in item.children" |
61 | 63 | :key="i" |
62 | 64 | :to="child.link" |
|
73 | 75 | </v-list-item-title> |
74 | 76 | </v-list-item-content> |
75 | 77 | </v-list-item> |
| 78 | + |
| 79 | + <template v-if="item.type"> |
| 80 | + <v-list-group |
| 81 | + v-for="(item, i) in item.children" |
| 82 | + :key="i" |
| 83 | + :value="true" |
| 84 | + no-action |
| 85 | + sub-group |
| 86 | + > |
| 87 | + <template v-slot:activator> |
| 88 | + <v-list-item-content> |
| 89 | + <v-list-item-title>{{ item.title }}</v-list-item-title> |
| 90 | + </v-list-item-content> |
| 91 | + </template> |
| 92 | + |
| 93 | + <v-list-item |
| 94 | + v-for="(child, i) in item.children" |
| 95 | + :key="i" |
| 96 | + link |
| 97 | + > |
| 98 | + <v-list-item-title v-text="child.title"></v-list-item-title> |
| 99 | + </v-list-item> |
| 100 | + </v-list-group> |
| 101 | + </template> |
76 | 102 | </v-list-group> |
77 | 103 | <v-list-item |
78 | 104 | color="primary" |
79 | 105 | v-else |
80 | 106 | :key="item.text" |
| 107 | + :href="item.href ? item.href : null" |
81 | 108 | :to="item.link === '#' ? '' : item.link" |
82 | 109 | @click="item.action ? item.action() : null" |
83 | 110 | link |
|
327 | 354 | title: 'Menu Levels', |
328 | 355 | icon: 'mdi-folder', |
329 | 356 | model: false, |
| 357 | + type: 'sub-menu', |
330 | 358 | children: [ |
331 | | - { title: 'Level 1.1', icon: 'mdi-circle-small', }, |
| 359 | + { title: 'Level 1.1', |
| 360 | + icon: 'mdi-circle-small', |
| 361 | + children: [ |
| 362 | + { title: 'Level 1.2', icon: 'mdi-circle-small', link: '/extra/calendar'}, |
| 363 | + { title: 'Level 1.3', icon: 'mdi-circle-small', link: '/extra/invoice'}, |
| 364 | + ]}, |
332 | 365 | { |
333 | | - title: 'Level 1.2', |
| 366 | + title: 'Level 2.1', |
334 | 367 | icon: 'mdi-folder', |
335 | 368 | model: false, |
336 | 369 | children: [ |
337 | | - { title: 'Calendar', icon: 'mdi-circle-small', link: '/extra/calendar'}, |
338 | | - { title: 'Invoice', icon: 'mdi-circle-small', link: '/extra/invoice'}, |
| 370 | + { title: 'Level 2.2', icon: 'mdi-circle-small', link: '/extra/calendar'}, |
| 371 | + { title: 'Level 2.3', icon: 'mdi-circle-small', link: '/extra/invoice'}, |
339 | 372 | ], |
340 | 373 | }, |
341 | 374 | ], |
342 | 375 | }, |
343 | 376 | { divider: true }, |
344 | 377 | { heading: 'HELP' }, |
345 | | - { title: 'Library', icon: 'mdi-book-variant-multiple'}, |
346 | | - { title: 'Support', icon: 'mdi-forum'}, |
347 | | - { title: 'FAQ', icon: 'mdi-help-circle-outline', }, |
| 378 | + { title: 'Library', icon: 'mdi-book-variant-multiple', href: 'https://flatlogic.com/templates'}, |
| 379 | + { title: 'Support', icon: 'mdi-forum', href: 'https://flatlogic.com/forum/'}, |
| 380 | + { title: 'FAQ', icon: 'mdi-help-circle-outline', href:'https://flatlogic.com/templates/vue-material-template'}, |
348 | 381 | { divider: true }, |
349 | 382 | { heading: 'PROJECTS' }, |
350 | 383 | { title: 'My recent', icon: 'mdi-circle-medium', color: 'warning'}, |
|
0 commit comments