/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

import { defineComponent, inject } from '@vue/composition-api';
import { Submenu, MenuItem } from '../../components/menu/index.js';
import { LdesignMenuItemProps } from './props.js';
import '../../utils/withInstall.js';
import 'vue';
import 'lodash/capitalize';
import '../../config.js';
import '../../utils/map-props.js';
import '../../components/menu/menu.js';
import '../../utils/render-node.js';
import 'lodash';
import '../../hooks/useConfig.js';
import '../../components/config-provider/useConfig.js';
import '../../components/config-provider/context.js';
import 'lodash/merge';
import 'lodash/mergeWith';
import '../../chunks/zh_CN.js';
import '../../components/config-provider/type.js';
import '../../components/menu/props.js';
import '../../components/menu/v-menu.js';
import '@babel/runtime/helpers/defineProperty';
import '../../components/menu/head-menu.js';
import '../../components/tabs/index.js';
import '../../components/tabs/tabs.js';
import '../../chunks/helper.js';
import '../../chunks/_commonjsHelpers.js';
import 'lodash/kebabCase';
import '../../utils/event.js';
import '../../utils/helper.js';
import 'lodash/camelCase';
import '../../components/config-provider/config-receiver.js';
import '../../utils/mixins.js';
import '../../components/tabs/props.js';
import '../../components/tabs/tab-panel.js';
import '../../hooks/useDestroyOnClose.js';
import '../../components/tabs/tab-nav.js';
import 'lodash/debounce';
import '@ldesign/icons-vue';
import '../../components/tabs/tab-nav-item.js';
import '../../utils/ripple.js';
import '../../chunks/set-style.js';
import '../../components/tabs/style';
import '../../components/tabs/type.js';
import '../../components/menu/sub-menu.js';
import '../../components/common/fake-arrow.js';
import '../../components/menu/menu-item.js';
import '../../components/menu/menu-group.js';
import '../../components/menu/style';
import '../../components/menu/type.js';

var LdesignMenuItem = defineComponent({
  name: "LdesignMenuItem",
  inject: ["menuContext"],
  props: {
    ...LdesignMenuItemProps
  },
  setup(props2, ctx) {
    const menucontext = inject("menuContext");
    return {
      menucontext
    };
  },
  render() {
    const h = arguments[0];
    return h("div", [this.list.map(item => {
      if (item.children) {
        return h(Submenu, {
          "attrs": {
            "title": item.title,
            "value": item.path
          }
        }, [h("ldesign-menu-item", {
          "attrs": {
            "list": item.children
          }
        })]);
      } else {
        return h(MenuItem, {
          "attrs": {
            "value": item.path,
            "to": item.path
          }
        }, [h("span", [item.title])]);
      }
    })]);
  }
});

export { LdesignMenuItem as default };
//# sourceMappingURL=menu-item.js.map
