summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-10-27 13:53:47 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-10-27 13:53:47 +0900
commit25bd82ecaa3fec1cee8b8754fd5c6142a7b48b39 (patch)
treee7494adc4c5c390b0b723ae8fe2f06a7ae094b8e /src/client/components
parentAdd animation of context menu (diff)
downloadsharkey-25bd82ecaa3fec1cee8b8754fd5c6142a7b48b39.tar.gz
sharkey-25bd82ecaa3fec1cee8b8754fd5c6142a7b48b39.tar.bz2
sharkey-25bd82ecaa3fec1cee8b8754fd5c6142a7b48b39.zip
Default behavior option for MkA component
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/ui/a.vue11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/components/ui/a.vue b/src/client/components/ui/a.vue
index dce99ef676..8460c90b16 100644
--- a/src/client/components/ui/a.vue
+++ b/src/client/components/ui/a.vue
@@ -31,6 +31,10 @@ export default defineComponent({
type: String,
required: false,
},
+ behavior: {
+ type: String,
+ required: false,
+ },
},
computed: {
@@ -84,6 +88,13 @@ export default defineComponent({
},
nav() {
+ if (this.behavior) {
+ if (this.behavior === 'window') {
+ os.pageWindow(this.to);
+ return;
+ }
+ }
+
if (this.navHook) {
this.navHook(this.to);
} else {