import '@das-fed/upf-ui/packages/components/collapse-panel/style.css';
import { defineComponent as d, useAttrs as i, inject as u, computed as f, openBlock as n, createBlock as m, unref as p, mergeProps as h, withCtx as s, createCommentVNode as c, renderSlot as l, withDirectives as _, createElementBlock as w, createTextVNode as C, toDisplayString as v, ref as D } from "vue";
import { withInstall as b } from "@das-fed/upf-utils/with-install/index";
import { CollapsePanel as P } from "ant-design-vue";
import { vDasTooltip as $ } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
import "ant-design-vue/es/collapse/style/css";
import "@das-fed/upf-ui/packages/global/theme";
const k = { class: "das-collaspe-panel--header" }, x = /* @__PURE__ */ d({
  __name: "Index",
  props: {
    header: { default: "" }
  },
  setup(t) {
    const a = i(), o = u("parentCollapsible"), r = f(() => o.value || a.collapsible === "disabled");
    return (e, B) => (n(), m(p(P), h(e.$attrs, {
      class: "das-collaspe-panel",
      showArrow: r.value ? !1 : e.$attrs.showArrow
    }), {
      header: s(() => [
        c(" 面板头内容 "),
        l(e.$slots, "header", {}, () => [
          _((n(), w("div", k, [
            C(
              v(t.header),
              1
              /* TEXT */
            )
          ])), [
            [p($)]
          ])
        ], !0)
      ]),
      extra: s(() => [
        c(" 自定义渲染每个面板右上角的内容 "),
        l(e.$slots, "extra", {}, void 0, !0)
      ]),
      default: s(() => [
        l(e.$slots, "default", {}, void 0, !0)
      ]),
      _: 3
      /* FORWARDED */
    }, 16, ["showArrow"]));
  }
}), A = (t, a) => {
  const o = t.__vccOpts || t;
  for (const [r, e] of a)
    o[r] = e;
  return o;
}, g = /* @__PURE__ */ A(x, [["__scopeId", "data-v-e4682cad"]]), V = () => D(null), j = b(g);
export {
  j as DasCollaspePanel,
  V as DasCollaspePanelRef,
  j as default
};
