UNPKG

@opentiny/vue-renderless

Version:

An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.

13 lines (12 loc) 312 B
import "../chunk-G2ADBYYC.js"; const handelNodeClick = ({ state, dispatch }) => (node) => { dispatch("Menu", "node-clicked", node); if (node.disabled) return; state.showNodes = !state.showNodes; state.activeNodeId = node.id; dispatch("Menu", "node-changed", node); }; export { handelNodeClick };