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 11<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" />
133</template >
144
155<script >
16- import CLink from ' ../link/CLink'
176export 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'
368}
379 </script >
Original file line number Diff line number Diff line change @@ -297,9 +297,7 @@ export declare class CHeader extends Vue {
297297 withSubheader : boolean
298298}
299299
300- export declare class CHeaderBrand extends Vue {
301- wrappedInLink : [ object , string ]
302- }
300+ export declare class CHeaderBrand extends Vue { }
303301
304302export declare class CHeaderNav extends Vue { }
305303
You can’t perform that action at this time.
0 commit comments