UNPKG

@wetspace/pro-components

Version:
37 lines (36 loc) 935 B
import { defineComponent as a, openBlock as n, createBlock as o, unref as l, withCtx as s, createElementBlock as f, Fragment as p, renderList as _ } from "vue"; import { ElMenu as d } from "element-plus"; import k from "./menu-item.vue.mjs"; const x = /* @__PURE__ */ a({ __name: "xmenu", props: { menus: { type: Array }, iconSize: Number, active: String }, emits: ["menuClick"], setup(r, { emit: c }) { const e = r, m = c, u = (t) => { m("menuClick", t); }; return (t, z) => (n(), o(l(d), { mode: "horizontal", "default-active": e.active }, { default: s(() => [ (n(!0), f(p, null, _(e.menus, (i) => (n(), o(k, { key: i.path, "icon-size": e.iconSize, info: i, onMenuClick: u }, null, 8, ["icon-size", "info"]))), 128)) ]), _: 1 }, 8, ["default-active"])); } }); export { x as default };