(function(t,a){typeof exports=="object"&&typeof module!="undefined"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(t=typeof globalThis!="undefined"?globalThis:t||self,a(t.index={},t.Vue))})(this,function(t,a){"use strict";const m={align:{type:String,default:"start"},src:{type:String,default:""},shadow:{type:String,default:"hover"}};function f(r,e,d){let i=r;return e&&(i+=`__${e}`),d&&(i+=`--${d}`),i}function y(r,e=!1){const d=e?`.devui-${r}`:`devui-${r}`;return{b:()=>f(d),e:c=>c?f(d,c):"",m:c=>c?f(d,"",c):"",em:(c,u)=>c&&u?f(d,c,u):""}}var C="",p=a.defineComponent({name:"DCard",props:m,setup(r,{slots:e}){const{align:d,src:i}=a.toRefs(r),n=y("card"),g=a.computed(()=>({[n.e("actions")]:!0,[n.em("actions",`align-${d.value}`)]:d.value!=="start"}));return()=>{var v,c,u,N,V,h,o;return a.createVNode("div",{class:["card-container",n.b(),n.em("shadow",r.shadow)]},[(v=e.default)==null?void 0:v.call(e),(e.avatar||e.title||e.subtitle)&&a.createVNode("div",{class:n.e("header")},[((c=e.avatar)==null?void 0:c.call(e))?a.createVNode("div",{class:n.e("avatar")},[(u=e.avatar)==null?void 0:u.call(e)]):"",a.createVNode("div",null,[a.createVNode("div",{class:n.e("title")},[(N=e.title)==null?void 0:N.call(e)]),a.createVNode("div",{class:n.e("subtitle")},[(V=e.subtitle)==null?void 0:V.call(e)])])]),i.value!==""?a.createVNode("img",{src:i.value,alt:"",class:n.e("meta")},null):"",e.content&&a.createVNode("div",{class:n.e("content")},[(h=e.content)==null?void 0:h.call(e)]),e.actions&&a.createVNode("div",{class:g.value},[e.actions?(o=e.actions)==null?void 0:o.call(e):""])])}}}),b={title:"Card \u5361\u7247",category:"\u6570\u636E\u5C55\u793A",status:"100%",install(r){r.component(p.name,p)}};t.Card=p,t.cardProps=m,t.default=b,Object.defineProperty(t,"__esModule",{value:!0}),t[Symbol.toStringTag]="Module"});
