11<template >
2- <v-footer
3- :style =" {
4- background: this.config.vuetify.theme.themes[theme].colors.primary,
5- color: config.vuetify.theme.themes[theme].colors.onPrimary,
6- }"
7- app
8- >
9- <div class =" flex-grow-1" ></div >
10- <div >
11- <span role =" img" aria-label =" copyright" > © ; </span > 2019
12- <a href =" https://weareopensource.me" style =" color : white ; text-decoration : none " >We Are Open Source</a >
13- </div >
2+ <v-footer v-if =" enabled" class =" pa-0 align-end" :style =" { background: config.vuetify.theme.themes[theme].colors.background }" app >
3+ <v-container class =" footer pa-6" :style =" custom && custom.section ? custom.section : null" v-if =" links.length > 0" >
4+ <v-row >
5+ <v-col
6+ v-for =" ({ items, title }, i) in links.filter((section) => section.items)"
7+ :key =" i"
8+ cols =" 12"
9+ :md =" 12 / links.filter((section) => section.items).length"
10+ >
11+ <v-card :flat =" config.vuetify.theme.flat" :style =" custom && custom.section ? custom.section : null" >
12+ <v-card-title class =" justify-center text-h6 text-medium-emphasis" v-text =" title" ></v-card-title >
13+ <v-list :style =" custom && custom.section ? custom.section : null" >
14+ <v-list-item v-for =" (item, i) in items" :key =" i" :to =" item.url" class =" justify-center" >
15+ <v-list-item-title >
16+ <v-icon size =" 16" class =" mr-2 text-onSurface text-medium-emphasis" >{{ item.icon }}</v-icon >
17+ <span class =" text-secondary text-subtitle-2" > {{ item.label }} </span >
18+ </v-list-item-title >
19+ </v-list-item >
20+ </v-list >
21+ </v-card >
22+ </v-col >
23+ </v-row >
24+ </v-container >
1425 </v-footer >
1526</template >
1627
@@ -24,8 +35,21 @@ import { mapGetters } from 'vuex';
2435 */
2536export default {
2637 name: ' waosFooter' ,
38+ data () {
39+ return {
40+ enabled: false ,
41+ };
42+ },
43+ props: [' links' , ' custom' ],
44+
2745 computed: {
2846 ... mapGetters ([' theme' ]),
2947 },
48+ watch: {
49+ $route (route) {
50+ if (route .meta && route .meta .footer ) this .enabled = true ;
51+ else this .enabled = false ;
52+ },
53+ },
3054};
3155 </script >
0 commit comments