mirror of
https://github.com/bitinflow/ui.git
synced 2026-04-28 11:56:18 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26b40d4c8c | ||
|
|
87bd79a661 |
@@ -1,6 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
|
## v0.0.6
|
||||||
|
|
||||||
## v0.0.5
|
## v0.0.5
|
||||||
|
|
||||||
## v0.0.4
|
## v0.0.4
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bitinflow/ui",
|
"name": "@bitinflow/ui",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"description": "bitinflow UI Kit",
|
"description": "bitinflow UI Kit",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -22,12 +22,19 @@ export default {
|
|||||||
href: {
|
href: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '/'
|
default: '/'
|
||||||
|
},
|
||||||
|
exact: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
calculateClasses: function () {
|
calculateClasses: function () {
|
||||||
return {
|
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 !== '/',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user