mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-04-27 18:14:48 +00:00
add href support to mdMenuItem #463
This commit is contained in:
parent
e054bb855a
commit
49e1e824ae
2 changed files with 6 additions and 2 deletions
|
|
@ -158,7 +158,7 @@
|
|||
<md-button md-menu-trigger>Bottom Right</md-button>
|
||||
|
||||
<md-menu-content>
|
||||
<md-menu-item>My Item 1</md-menu-item>
|
||||
<md-menu-item href="http://google.com">My Item 1</md-menu-item>
|
||||
<md-menu-item>My Item 2</md-menu-item>
|
||||
<md-menu-item>My Item 3</md-menu-item>
|
||||
</md-menu-content>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
<template>
|
||||
<md-list-item
|
||||
class="md-menu-item"
|
||||
:class="classes"
|
||||
@click.native="close"
|
||||
:class="classes"
|
||||
:href="href"
|
||||
:target="target"
|
||||
:disabled="disabled">
|
||||
<slot></slot>
|
||||
</md-list-item>
|
||||
|
|
@ -14,6 +16,8 @@
|
|||
|
||||
export default {
|
||||
props: {
|
||||
href: String,
|
||||
target: String,
|
||||
disabled: Boolean
|
||||
},
|
||||
data: () => ({
|
||||
|
|
|
|||
Loading…
Reference in a new issue