'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
require('../../../utils/index.cjs');
var useMenuContext = require('./hooks/useMenuContext.cjs');
var _class = require('../../../utils/dom/class.cjs');

const InternalSubMenuList = (_props, {
  slots,
  attrs
}) => {
  var _a;
  const {
    prefixCls,
    mode
  } = useMenuContext.useInjectMenu();
  return vue.createVNode("ul", {
    ...attrs,
    "class": _class.classNames(prefixCls.value, `${prefixCls.value}-sub`, `${prefixCls.value}-${mode.value === "inline" ? "inline" : "vertical"}`),
    "data-menu-list": true
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
};
InternalSubMenuList.displayName = "SubMenuList";

exports.default = InternalSubMenuList;
//# sourceMappingURL=SubMenuList.cjs.map
