Fixed #1688 - ContextMenu "template" prop type error
parent
4920f2d88b
commit
6b196a6030
|
@ -49,7 +49,7 @@ export default {
|
|||
default: false
|
||||
},
|
||||
template: {
|
||||
type: Object,
|
||||
type: Function,
|
||||
default: null
|
||||
},
|
||||
exact: {
|
||||
|
|
|
@ -11,7 +11,12 @@
|
|||
<div class="content-section implementation">
|
||||
<div class="card">
|
||||
<img alt="logo" src="demo/images/nature/nature3.jpg" @contextmenu="onImageRightClick" aria-haspopup="true">
|
||||
<ContextMenu ref="menu" :model="items" />
|
||||
<!-- <ContextMenu ref="menu" :model="items" /> -->
|
||||
<ContextMenu ref="menu" :model="items">
|
||||
<template #item="{item}">
|
||||
<a :href="item.url">{{item.label}}</a>
|
||||
</template>
|
||||
</ContextMenu>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue