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