![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@ektx/v-contextmenu
Advanced tools
右键菜单功能
don't see img? click here
yarn add @ektx/v-contextmenu
请先确保你有使用 vuex
import setContextmenu from '@ektx/v-contextmenus/store'
const store = new Vuex.Store({
state: {},
// add this mutations
mutations: {
setContextmenu
}
})
<template>
<main>
<!-- 绑定事件 -->
<div @contextmenu.prevent="rightClick"></div>
<!-- 引用 HTML 结构 -->
<VContextmenus></VContextmenus>
</main>
</template>
<script>
// 引入
import VContextmenus from '@ektx/v-contextmenus'
export default {
components: {
VContextmenus
},
data () {
return {
// 菜单内容
menu: {
data: [
{
title: 'v-contenxtmenus',
evt: function(data) {
alert('Welcome Use v-contenxtmenus!')
}
},
{
title: '联系方式',
children: [
{
title: 'ektx1989@gmail.com'
},
{
title: '@宅龙猫'
}
]
},
{
type: 'separator'
},
{
title: 'Github.com',
evt: function() {
}
},
{
type: 'separator'
},
{
disabled: true,
title: 'v 0.1.0'
}
]
}
}
},
methods: {
// 自定义事件
rightClick (evt) {
store.commit('setContextmenu', {
data: this.menu, evt
})
}
}
}
</script>
store.commit('setContextmenu', {data, evt})
@data 菜单内容 @evt 鼠标事件
store.commit('setContextmenu', { show: false })
FAQs
Vue 右键菜单功能
The npm package @ektx/v-contextmenu receives a total of 3 weekly downloads. As such, @ektx/v-contextmenu popularity was classified as not popular.
We found that @ektx/v-contextmenu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.