"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../../node_modules/element-plus/es/index.js");
;/* empty css                                                             */
const Vue = require("vue");
const index$1 = require("../../../../../node_modules/@element-plus/icons-vue/dist/index.js");
const H2Wrapper = require("./H2Wrapper.vue.js");
const SubTitle = require("./SubTitle.vue.js");
;/* empty css               */
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
const index = require("../../../../../node_modules/element-plus/es/components/icon/index.js");
const _hoisted_1 = { class: "sub-table-container" };
const _hoisted_2 = {
  key: 0,
  style: { "margin-bottom": "12px" }
};
const _hoisted_3 = {
  key: 0,
  class: "empty-state"
};
const _hoisted_4 = {
  key: 1,
  class: "table-content"
};
const _hoisted_5 = { class: "table-icon" };
const _hoisted_6 = { class: "table-info" };
const _hoisted_7 = ["title"];
const _hoisted_8 = ["title"];
const _sfc_main = {
  __name: "SubTable",
  props: {
    componentData: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const titleMode = Vue.computed(() => {
      var _a;
      const mode = ((_a = props.componentData) == null ? void 0 : _a.titleMode) || "none";
      return mode;
    });
    const tableName = Vue.computed(() => {
      var _a;
      return ((_a = props.componentData) == null ? void 0 : _a.subTableName) || "";
    });
    const tableKey = Vue.computed(() => {
      var _a;
      return ((_a = props.componentData) == null ? void 0 : _a.subTableKey) || "";
    });
    return (_ctx, _cache) => {
      const _component_el_icon = index.ElIcon;
      return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
        titleMode.value !== "none" ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
          titleMode.value === "label" ? (Vue.openBlock(), Vue.createBlock(H2Wrapper.default, {
            key: 0,
            componentData: __props.componentData
          }, null, 8, ["componentData"])) : titleMode.value === "subLabel" ? (Vue.openBlock(), Vue.createBlock(SubTitle.default, {
            key: 1,
            componentData: __props.componentData
          }, null, 8, ["componentData"])) : Vue.createCommentVNode("", true)
        ])) : Vue.createCommentVNode("", true),
        Vue.createElementVNode("div", {
          class: Vue.normalizeClass(["sub-table-display", { "is-empty": !tableName.value, "has-table": tableName.value }])
        }, [
          !tableName.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3, [
            Vue.createVNode(_component_el_icon, { class: "icon" }, {
              default: Vue.withCtx(() => [
                Vue.createVNode(Vue.unref(index$1.Grid))
              ]),
              _: 1
            }),
            _cache[0] || (_cache[0] = Vue.createElementVNode("div", { class: "text" }, "未配置子列表", -1))
          ])) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4, [
            Vue.createElementVNode("div", _hoisted_5, [
              Vue.createVNode(_component_el_icon, null, {
                default: Vue.withCtx(() => [
                  Vue.createVNode(Vue.unref(index$1.Grid))
                ]),
                _: 1
              })
            ]),
            Vue.createElementVNode("div", _hoisted_6, [
              Vue.createElementVNode("div", {
                class: "table-name",
                title: tableName.value
              }, Vue.toDisplayString(tableName.value), 9, _hoisted_7),
              Vue.createElementVNode("div", {
                class: "table-key",
                title: tableKey.value
              }, Vue.toDisplayString(tableKey.value), 9, _hoisted_8)
            ])
          ]))
        ], 2)
      ]);
    };
  }
};
const SubTable = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8c97b459"]]);
exports.default = SubTable;
