mirror of
https://github.com/bitinflow/ui.git
synced 2026-04-28 03:46:18 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26b40d4c8c | ||
|
|
87bd79a661 |
@@ -1,6 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
|
||||
## v0.0.6
|
||||
|
||||
## v0.0.5
|
||||
|
||||
## v0.0.4
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 !== '/',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user