github
2266 of 2274 branches covered (99.65%)
Branch coverage included in aggregate %.
370 of 370 new or added lines in 53 files covered. (100.0%)
13829 of 13874 relevant lines covered (99.68%)
6.04 hits per line
1 |
import { defineComponent } from 'vue'; |
1✔ |
2 |
|
1✔ |
3 |
export default defineComponent({ |
1✔ |
4 |
props: {
|
1✔ |
5 |
tag: {
|
1✔ |
6 |
type: String,
|
1✔ |
7 |
default: 'a' |
1✔ |
8 |
} |
1✔ |
9 |
}, |
1✔ |
10 |
computed: {
|
1✔ |
11 |
isTag (): string {
|
|
12 |
return this.$attrs.to ? this.routerComponent : this.$attrs.href ? 'a' : this.tag; |
|
13 |
}, |
196✔ |
14 |
isComponent (): boolean { |
1✔ |
15 |
return this.isTag === this.routerComponent; |
× |
16 |
}, |
× |
17 |
routerComponent (): string {
|
|
18 |
return this.$inkline.options.routerComponent; |
1✔ |
19 |
} |
1✔ |
20 |
} |
1✔ |
21 |
}); |
1✔ |