@itfin/components 1.0.103 → 1.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
|
|
3
3
|
<nav aria-label="breadcrumb">
|
|
4
|
-
<ol class="breadcrumb mb-1">
|
|
4
|
+
<ol class="breadcrumb mb-1" itemscope itemtype="https://schema.org/BreadcrumbList">
|
|
5
5
|
<li
|
|
6
6
|
v-for="(crumb, n) of items"
|
|
7
7
|
class="breadcrumb-item"
|
|
8
8
|
:key="n"
|
|
9
9
|
:class="{'active': n === items.length - 1}"
|
|
10
10
|
:aria-current="n === items.length - 1 ? 'page' : null"
|
|
11
|
+
itemprop="itemListElement"
|
|
12
|
+
itemscope
|
|
13
|
+
itemtype="https://schema.org/ListItem"
|
|
11
14
|
>
|
|
12
|
-
<span v-if="crumb.disabled || !crumb.to">
|
|
13
|
-
|
|
15
|
+
<span v-if="crumb.disabled || !crumb.to">
|
|
16
|
+
<span class="d-none d-md-inline">{{crumb.text}}</span>
|
|
17
|
+
<span class="d-md-none" aria-hidden="true">{{crumb.mobileText || crumb.text}}</span>
|
|
18
|
+
</span>
|
|
19
|
+
<nuxt-link itemprop="item" v-else :to="crumb.to" :exact="crumb.exact">
|
|
20
|
+
<span class="d-none d-md-inline" itemprop="name">{{crumb.text}}</span>
|
|
21
|
+
<span class="d-md-none" aria-hidden="true">{{crumb.mobileText || crumb.text}}</span>
|
|
22
|
+
</nuxt-link>
|
|
23
|
+
<meta itemprop="position" :content="n + 1" />
|
|
14
24
|
</li>
|
|
15
25
|
</ol>
|
|
16
26
|
</nav>
|
|
17
27
|
|
|
18
28
|
</template>
|
|
19
|
-
<style lang="scss">
|
|
20
|
-
@import '../../assets/scss/variables';
|
|
21
|
-
//@import '~bootstrap/scss/breadcrumb';
|
|
22
|
-
</style>
|
|
23
29
|
<script>
|
|
24
30
|
import { Vue, Component, Prop } from 'vue-property-decorator';
|
|
25
31
|
|
|
@@ -32,7 +32,7 @@ class itfTab extends Vue {
|
|
|
32
32
|
get active() {
|
|
33
33
|
if (this.to) {
|
|
34
34
|
const route = this.$router.resolve(this.to);
|
|
35
|
-
return this.$route.
|
|
35
|
+
return this.$route.fullPath === (route && route.href);
|
|
36
36
|
}
|
|
37
37
|
return this.tabsManager && this.tabsManager.getValue() === this.id;
|
|
38
38
|
}
|