'use strict';

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

var vue = require('vue');
var elementPlus = require('element-plus');
var index = require('../../svg-icon/index.js');

"use strict";
const _hoisted_1 = { class: "title flex-center" };
var script = /* @__PURE__ */ vue.defineComponent({
  __name: "tree-menu-card",
  props: {
    title: {
      type: String,
      default: ""
    },
    icon: {
      type: String,
      default: ""
    }
  },
  setup(__props) {
    const props = __props;
    return (_ctx, _cache) => {
      return vue.openBlock(), vue.createBlock(
        vue.unref(elementPlus.ElCard),
        vue.mergeProps({ class: "me-tree-menu-card" }, _ctx.$attrs, { shadow: "never" }),
        {
          header: vue.withCtx(() => [
            vue.createElementVNode("span", _hoisted_1, [
              __props.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index.MeSvgIcon), {
                key: 0,
                name: __props.icon,
                prefix: "",
                style: { "margin-right": "5px" }
              }, null, 8, ["name"])) : vue.createCommentVNode("v-if", true),
              vue.createTextVNode(
                " " + vue.toDisplayString(__props.title),
                1
                /* TEXT */
              )
            ]),
            vue.createElementVNode("div", null, [
              vue.renderSlot(_ctx.$slots, "header-right")
            ])
          ]),
          default: vue.withCtx(() => [
            vue.renderSlot(_ctx.$slots, "default")
          ]),
          _: 3
          /* FORWARDED */
        },
        16
        /* FULL_PROPS */
      );
    };
  }
});

exports.default = script;
//# sourceMappingURL=tree-menu-card.vue2.js.map
