import "../../../../../node_modules/element-plus/es/index.mjs";
/* empty css                                                             */
/* empty css                                                                  */
import { computed, createElementBlock, openBlock, createCommentVNode, createElementVNode, createBlock, withCtx, createVNode } from "vue";
import _imports_0 from "../../../assets/approvalHistory.png.mjs";
import H2Wrapper from "./H2Wrapper.vue.mjs";
import SubTitle from "./SubTitle.vue.mjs";
/* empty css                      */
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
import { ElButton } from "../../../../../node_modules/element-plus/es/components/button/index.mjs";
const _hoisted_1 = { class: "approval-history-container" };
const _hoisted_2 = {
  key: 0,
  style: { "margin-bottom": "12px" }
};
const _sfc_main = {
  __name: "approvalHistory",
  props: {
    componentData: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const titleMode = computed(() => {
      var _a;
      const mode = ((_a = props.componentData) == null ? void 0 : _a.titleMode) || "none";
      return mode;
    });
    return (_ctx, _cache) => {
      const _component_el_button = ElButton;
      return openBlock(), createElementBlock("div", _hoisted_1, [
        titleMode.value !== "none" ? (openBlock(), createElementBlock("div", _hoisted_2, [
          titleMode.value === "label" ? (openBlock(), createBlock(H2Wrapper, {
            key: 0,
            componentData: __props.componentData
          }, {
            default: withCtx(() => [
              createVNode(_component_el_button, {
                link: "",
                type: "primary"
              }, {
                default: withCtx(() => _cache[0] || (_cache[0] = [
                  createElementVNode("span", null, "时间轴", -1)
                ])),
                _: 1
              }),
              createVNode(_component_el_button, {
                link: "",
                type: "primary"
              }, {
                default: withCtx(() => _cache[1] || (_cache[1] = [
                  createElementVNode("span", null, "流程图", -1)
                ])),
                _: 1
              })
            ]),
            _: 1
          }, 8, ["componentData"])) : titleMode.value === "subLabel" ? (openBlock(), createBlock(SubTitle, {
            key: 1,
            componentData: __props.componentData
          }, null, 8, ["componentData"])) : createCommentVNode("", true)
        ])) : createCommentVNode("", true),
        _cache[2] || (_cache[2] = createElementVNode("div", { class: "approval-history-preview" }, [
          createElementVNode("img", {
            src: _imports_0,
            alt: "审批历史",
            class: "approval-history-img"
          })
        ], -1))
      ]);
    };
  }
};
const ApprovalHistory = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-49ded90b"]]);
export {
  ApprovalHistory as default
};
