---
layout: templateLayout
---
```vue
<template>
    <contextmenu :data="actions" @on-choose="doAction">
        右键点击
    </contextmenu>
</template>
<script>
export default {
    data() {
        return {
            actions: [ '新增', '删除', '复制']
        }
    },
    methods: {
        doAction (data, index) {
            this.$Toast("点击了" + data + index)
        }
    }
}
</script>
```