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