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 1
1
<template >
2
- <footer :class =" classList" >
2
+ <component :is = " tag " :class =" classList" >
3
3
<slot >Footer</slot >
4
- </footer >
4
+ </component >
5
5
</template >
6
6
7
7
<script >
8
8
export default {
9
9
name: ' CFooter' ,
10
10
props: {
11
+ tag: {
12
+ type: String ,
13
+ default: ' footer'
14
+ },
11
15
fixed: Boolean
12
16
},
13
17
computed: {
Original file line number Diff line number Diff line change 1
1
<template >
2
- <header :class =" classList" >
2
+ <component :is = " tag " :class =" classList" >
3
3
<slot ></slot >
4
- </header >
4
+ </component >
5
5
</template >
6
6
7
7
<script >
8
8
export default {
9
9
name: ' CHeader' ,
10
10
props: {
11
+ tag: {
12
+ type: String ,
13
+ default: ' header'
14
+ },
15
+ colorScheme: {
16
+ type: String ,
17
+ default: ' light'
18
+ },
11
19
fixed: Boolean ,
12
20
withSubheader: Boolean
13
21
},
14
22
computed: {
15
23
classList () {
16
24
return [
17
- ' c-header c-header-light' ,
25
+ ' c-header' ,
26
+ ` c-header-${ this .colorScheme } ` ,
18
27
{
19
28
' c-header-fixed' : this .fixed ,
20
29
' 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 {
165
165
}
166
166
167
167
export declare class CFooter extends Vue {
168
+ tag : string
168
169
fixed : boolean
169
170
}
170
171
@@ -296,6 +297,9 @@ export declare class CRow extends Vue {
296
297
297
298
export declare class CHeader extends Vue {
298
299
fixed : boolean
300
+ tag : string
301
+ colorScheme : string
302
+ withSubheader : boolean
299
303
}
300
304
301
305
export declare class CImg extends Vue {
You can’t perform that action at this time.
0 commit comments