feat: add type property to ContextMenu and set delete message item to danger
This commit is contained in:
parent
fbb72919c3
commit
7f98992839
3 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
|||
<template>
|
||||
<div id="context-menu">
|
||||
<button v-for="item of props.menuItems" class="context-menu-item" @click="runCallback(item)">
|
||||
<button v-for="item of props.menuItems" class="context-menu-item"
|
||||
:class="'context-menu-item-' + item.type"
|
||||
@click="runCallback(item)">
|
||||
{{ item.name }} <Icon v-if="item.icon" :name="item.icon" />
|
||||
</button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue