1 |
- import{o as t,n as l,p as o,_ as M,q as B,r as f,B as n,A as i,M as c,W as b,v as d,x as r,P as s,C as m,z as u}from"./index.41f763da.js";const I={fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em",class:"t-icon t-icon-shop"},S=o("path",{fill:"currentColor",d:"M8 1a2.5 2.5 0 0 0-2.5 2.5V5h-2a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h9a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-2V3.5A2.5 2.5 0 0 0 8 1zm1.5 5v2h1V6H12v8H4V6h1.5v2h1V6h3zm0-1h-3V3.5a1.5 1.5 0 1 1 3 0V5z"},null,-1),A=[S];function D(e,a){return t(),l("svg",I,A)}var N={render:D};const j={fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em",class:"t-icon t-icon-laptop"},F=o("path",{fill:"currentColor",d:"M2.5 12a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-11zm0-1h11V4h-11v7zM15 13H1v1h14v-1z"},null,-1),O=[F];function q(e,a){return t(),l("svg",j,O)}var E={render:q};const L={fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em",class:"t-icon t-icon-service"},P=o("path",{fill:"currentColor",d:"M2.52 6.37a5.5 5.5 0 0 1 10.98.13v4c0 .05 0 .1-.02.15A4.5 4.5 0 0 1 9 14.7H8v-1h1a3.5 3.5 0 0 0 3.4-2.7h-1.9a.5.5 0 0 1-.5-.5v-4c0-.28.22-.5.5-.5h1.93a4.5 4.5 0 0 0-8.86 0H5.5c.28 0 .5.22.5.5v4a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-4c0-.04 0-.09.02-.13zM12.5 7H11v3h1.5V7zm-9 0v3H5V7H3.5z"},null,-1),R=[P];function T(e,a){return t(),l("svg",L,R)}var W={render:T};const G={fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em",class:"t-icon t-icon-calendar"},J=o("path",{fill:"currentColor",d:"M10 3H6V1.5H5V3H3a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-2V1.5h-1V3zM5 5h1V4h4v1h1V4h2v2H3V4h2v1zM3 7h10v6H3V7z"},null,-1),K=[J];function Q(e,a){return t(),l("svg",G,K)}var U={render:Q};const X={fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em",class:"t-icon t-icon-user-avatar"},Y=o("path",{fill:"currentColor",d:"M8 10.5c1.24 0 2.42.31 3.5.88v1.12h1v-1.14a.94.94 0 0 0-.49-.84 8.48 8.48 0 0 0-8.02 0 .94.94 0 0 0-.49.84v1.14h1v-1.12A7.47 7.47 0 0 1 8 10.5zM10.5 6a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zm-1 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0z"},null,-1),Z=o("path",{fill:"currentColor",d:"M2.5 1.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11zm11 1v11h-11v-11h11z"},null,-1),ee=[Y,Z];function te(e,a){return t(),l("svg",X,ee)}var oe={render:te};const ae={class:"list-card-item_detail"},ie={class:"list-card-item_detail--operation"},ce=m(" \u7BA1\u7406 "),de=m(" \u5220\u9664 "),ne={class:"list-card-item_detail--name"},le={class:"list-card-item_detail--desc"},re={name:"ReCard"},se=B({...re,props:{product:{type:Object}},emits:["manage-product","delete-item"],setup(e,{emit:a}){const p=e,x=_=>{a("manage-product",_)},g=_=>{a("delete-item",_)},w=f(()=>["list-card-item",{"list-card-item__disabled":!p.product.isSetup}]),V=f(()=>["list-card-item_detail--logo",{"list-card-item_detail--logo__disabled":!p.product.isSetup}]);return(_,h)=>{const z=n("el-tag"),y=n("IconifyIconOffline"),v=n("el-dropdown-item"),C=n("el-dropdown-menu"),$=n("el-dropdown"),k=n("el-row");return t(),l("div",{class:b(d(w))},[o("div",ae,[i(k,{justify:"space-between"},{default:c(()=>[o("div",{class:b(d(V))},[e.product.type===1?(t(),r(d(N),{key:0})):s("",!0),e.product.type===2?(t(),r(d(U),{key:1})):s("",!0),e.product.type===3?(t(),r(d(W),{key:2})):s("",!0),e.product.type===4?(t(),r(d(oe),{key:3})):s("",!0),e.product.type===5?(t(),r(d(E),{key:4})):s("",!0)],2),o("div",ie,[i(z,{color:e.product.isSetup?"#00a870":"#eee",effect:"dark",class:"mx-1 list-card-item_detail--operation--tag"},{default:c(()=>[m(u(e.product.isSetup?"\u5DF2\u542F\u7528":"\u5DF2\u505C\u7528"),1)]),_:1},8,["color"]),i($,{trigger:"click",disabled:!e.product.isSetup,"max-height":"2"},{dropdown:c(()=>[i(C,{disabled:!e.product.isSetup},{default:c(()=>[i(v,{onClick:h[0]||(h[0]=H=>x(e.product))},{default:c(()=>[ce]),_:1}),i(v,{onClick:h[1]||(h[1]=H=>g(e.product))},{default:c(()=>[de]),_:1})]),_:1},8,["disabled"])]),default:c(()=>[i(y,{icon:"more-vertical",class:"icon-more"})]),_:1},8,["disabled"])])]),_:1}),o("p",ne,u(e.product.name),1),o("p",le,u(e.product.description),1)])],2)}}});var he=M(se,[["__scopeId","data-v-5b7bec0e"]]);export{he as default};
|