File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed
Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 11<template >
2- <footer :class =" classList" >
2+ <component :is = " tag " :class =" classList" >
33 <slot >Footer</slot >
4- </footer >
4+ </component >
55</template >
66
77<script >
88export default {
99 name: ' CFooter' ,
1010 props: {
11+ tag: {
12+ type: String ,
13+ default: ' footer'
14+ },
1115 fixed: Boolean
1216 },
1317 computed: {
Original file line number Diff line number Diff line change 11<template >
2- <header :class =" classList" >
2+ <component :is = " tag " :class =" classList" >
33 <slot ></slot >
4- </header >
4+ </component >
55</template >
66
77<script >
88export default {
99 name: ' CHeader' ,
1010 props: {
11+ tag: {
12+ type: String ,
13+ default: ' header'
14+ },
15+ colorScheme: {
16+ type: String ,
17+ default: ' light'
18+ },
1119 fixed: Boolean ,
1220 withSubheader: Boolean
1321 },
1422 computed: {
1523 classList () {
1624 return [
17- ' c-header c-header-light' ,
25+ ' c-header' ,
26+ ` c-header-${ this .colorScheme } ` ,
1827 {
1928 ' c-header-fixed' : this .fixed ,
2029 ' c-header-with-subheader' : this .withSubheader
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ export declare class CEmbed extends Vue {
165165}
166166
167167export declare class CFooter extends Vue {
168+ tag : string
168169 fixed : boolean
169170}
170171
@@ -296,6 +297,9 @@ export declare class CRow extends Vue {
296297
297298export declare class CHeader extends Vue {
298299 fixed : boolean
300+ tag : string
301+ colorScheme : string
302+ withSubheader : boolean
299303}
300304
301305export declare class CImg extends Vue {
You can’t perform that action at this time.
0 commit comments