"use strict";const e=require("vue"),a=require("./base-iCmnU-fv.js"),p={key:0,class:"card-head"},u={key:0,class:"card-head-flex"},f={class:"card-title"},h={key:1,class:"card-title"},B={key:2,class:"card-explain"},y={key:1,class:"card-footer"},k=e.defineComponent({name:"ClCard",__name:"Index",props:{className:{},classBody:{},theme:{},isInnerPadZero:{type:Boolean},isHeadFlex:{type:Boolean}},setup(n){const l=e.useSlots(),t=n,c=e.computed(()=>typeof l.headTitle<"u"),d=e.computed(()=>typeof l.headExplain<"u"),r=e.computed(()=>typeof l.foot<"u"),i=e.computed(()=>{const o={"card-box":!0};return a.CommonBase.isEmpty(t.className)||t.className?.split(" ").forEach(s=>{a.CommonBase.isEmpty(s)||(o[s]=!0)}),o[`card-${t.theme||"default"}`]=!0,o}),m=e.computed(()=>{const o={"card-body":!0,"card-body-padding-0":t.isInnerPadZero||!1};return a.CommonBase.isEmpty(t.classBody)||t.classBody?.split(" ").forEach(s=>{a.CommonBase.isEmpty(s)||(o[s]=!0)}),o});return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value)},[c.value?(e.openBlock(),e.createElementBlock("div",p,[n.isHeadFlex?(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",f,[e.renderSlot(o.$slots,"headTitle")]),e.renderSlot(o.$slots,"headFlex")])):(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(o.$slots,"headTitle")])),d.value?(e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(o.$slots,"headExplain")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(m.value)},[e.renderSlot(o.$slots,"default")],2),r.value?(e.openBlock(),e.createElementBlock("div",y,[e.renderSlot(o.$slots,"foot")])):e.createCommentVNode("",!0)],2))}});exports._sfc_main=k;
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js.map
