diff --git a/components/mdc/action-item.vue b/components/mdc/action-item.vue
index b085919..c554ca2 100644
--- a/components/mdc/action-item.vue
+++ b/components/mdc/action-item.vue
@@ -26,6 +26,15 @@
title: {
required: true,
type: String
+ },
+
+ rel: {
+ default: "",
+ type: String
+ },
+ target: {
+ default: "",
+ type: String
}
},
@@ -36,19 +45,18 @@
{
if (this.href)
{
- return { "href": this.href };
+ return {
+ "href": this.href,
+ "rel": this.rel,
+ "target": this.target
+ };
}
return { };
},
tag(): string
{
- if (this.href)
- {
- return "a";
- }
-
- return "button";
+ return this.href ? "a" : "button";
}
},
diff --git a/components/mdc/button-item.vue b/components/mdc/button-item.vue
index 483ff13..ca5e343 100644
--- a/components/mdc/button-item.vue
+++ b/components/mdc/button-item.vue
@@ -42,6 +42,15 @@
type: String
},
+ rel: {
+ default: "",
+ type: String
+ },
+ target: {
+ default: "",
+ type: String
+ },
+
// Colors
//
secondary: {
@@ -82,19 +91,18 @@
{
if (this.href)
{
- return { "href": this.href };
+ return {
+ "href": this.href,
+ "rel": this.rel,
+ "target": this.target
+ };
}
return { };
},
tag(): string
{
- if (this.href)
- {
- return "a";
- }
-
- return "button";
+ return this.href ? "a" : "button";
}
},
diff --git a/components/mdc/menus/menu-anchor.vue b/components/mdc/menus/menu-anchor.vue
deleted file mode 100644
index b456ad8..0000000
--- a/components/mdc/menus/menu-anchor.vue
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
- {{ icon }}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/components/mdc/menus/menu-item.vue b/components/mdc/menus/menu-item.vue
index b71512a..78c9fdc 100644
--- a/components/mdc/menus/menu-item.vue
+++ b/components/mdc/menus/menu-item.vue
@@ -1,17 +1,25 @@
-
-
-
- {{ icon }}
-
-
-
-
+
+
+
+
+ {{ icon }}
+
+
+
+
+
@@ -24,19 +32,71 @@
export default Vue.extend({
name: "MenuItem",
props: {
+ href: {
+ default: "",
+ type: String
+ },
+
+ title: {
+ default: "",
+ type: String
+ },
icon: {
default: "",
type: String
+ },
+
+ rel: {
+ default: "",
+ type: String
+ },
+ target: {
+ default: "",
+ type: String
}
},
data: (): MenuItemData => ({ }),
+
+ computed: {
+ properties(): Record
+ {
+ if (this.href)
+ {
+ return {
+ "href": this.href,
+ "rel": this.rel,
+ "target": this.target
+ };
+ }
+
+ return { };
+ },
+ tag(): string
+ {
+ return this.href ? "a" : "div";
+ }
+ },
+
mounted: function(): void
{
- this._ripple = new MDCRipple(this.$el);
+ this._ripple = new MDCRipple(this.$refs.item as Element);
}
});
diff --git a/components/overflow-menu.vue b/components/overflow-menu.vue
index 629d4c8..bd5cc85 100644
--- a/components/overflow-menu.vue
+++ b/components/overflow-menu.vue
@@ -6,26 +6,15 @@
more_vert
@@ -33,16 +22,17 @@