File tree Expand file tree Collapse file tree 2 files changed +3
-33
lines changed Expand file tree Collapse file tree 2 files changed +3
-33
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <CLink v-if =" wrappedInLink" v-bind =" linkProps" >
3
- <img
4
- class =" c-header-brand"
5
- v-bind =" $attrs"
6
- />
7
- </CLink >
8
- <img
9
- v-else
10
- class =" c-header-brand"
11
- v-bind =" $attrs"
12
- />
2
+ <img class =" c-header-brand" />
13
3
</template >
14
4
15
5
<script >
16
- import CLink from ' ../link/CLink'
17
6
export default {
18
- name: ' CHeaderBrand' ,
19
- inheritAttrs: false ,
20
- components: {
21
- CLink
22
- },
23
- props: {
24
- wrappedInLink: [String , Object ]
25
- },
26
- computed : {
27
- linkProps () {
28
- return this .getObject (this .wrappedInLink , ' href' )
29
- }
30
- },
31
- methods: {
32
- getObject (prop , key ) {
33
- return typeof prop === ' object' ? prop : { [` ${ key} ` ]: prop }
34
- }
35
- }
7
+ name: ' CHeaderBrand'
36
8
}
37
9
</script >
Original file line number Diff line number Diff line change @@ -297,9 +297,7 @@ export declare class CHeader extends Vue {
297
297
withSubheader : boolean
298
298
}
299
299
300
- export declare class CHeaderBrand extends Vue {
301
- wrappedInLink : [ object , string ]
302
- }
300
+ export declare class CHeaderBrand extends Vue { }
303
301
304
302
export declare class CHeaderNav extends Vue { }
305
303
You can’t perform that action at this time.
0 commit comments