2 Commits
v0.0.5 ... main

Author SHA1 Message Date
René Preuß
26b40d4c8c chore(release): v0.0.6 2023-04-13 21:45:18 +02:00
René Preuß
87bd79a661 Add exact link 2023-04-13 21:44:43 +02:00
3 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
# Changelog
## v0.0.6
## v0.0.5
## v0.0.4

View File

@@ -1,6 +1,6 @@
{
"name": "@bitinflow/ui",
"version": "0.0.5",
"version": "0.0.6",
"description": "bitinflow UI Kit",
"license": "Apache-2.0",
"type": "module",

View File

@@ -22,12 +22,19 @@ export default {
href: {
type: String,
default: '/'
},
exact: {
type: Boolean,
default: false
}
},
computed: {
calculateClasses: function () {
return {
'router-link-active': document.location.href.includes(this.href) && this.href !== '/',
'router-link-active':
this.exact
? document.location.href === this.href
: document.location.href.includes(this.href) && this.href !== '/',
}
}
}