mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
2 lines
4.1 KiB
JavaScript
2 lines
4.1 KiB
JavaScript
import{f as o,k as r,g as n,d as I,p as g,e as i,i as l,w as c,v as w,b as s,u as d,j as u,h as p,t as h,_ as B}from"./index-yvJsfBgz.js";import{d as S}from"./more-2-fill-iTOisMwj.js";const A={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-shop",viewBox:"0 0 16 16"};function N(e,t){return o(),r("svg",A,t[0]||(t[0]=[n("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 1m1.5 5v2h1V6H12v8H4V6h1.5v2h1V6zm0-1h-3V3.5a1.5 1.5 0 1 1 3 0z"},null,-1)]))}const j={render:N},L={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-laptop",viewBox:"0 0 16 16"};function O(e,t){return o(),r("svg",L,t[0]||(t[0]=[n("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 1zm0-1h11V4h-11zM15 13H1v1h14z"},null,-1)]))}const D={render:O},E={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-service",viewBox:"0 0 16 16"};function R(e,t){return o(),r("svg",E,t[0]||(t[0]=[n("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-.13M12.5 7H11v3h1.5zm-9 0v3H5V7z"},null,-1)]))}const T={render:R},q={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-calendar",viewBox:"0 0 16 16"};function F(e,t){return o(),r("svg",q,t[0]||(t[0]=[n("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-1zM5 5h1V4h4v1h1V4h2v2H3V4h2zM3 7h10v6H3z"},null,-1)]))}const G={render:F},J={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-user-avatar",viewBox:"0 0 16 16"};function K(e,t){return o(),r("svg",J,t[0]||(t[0]=[n("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.5 7.5 0 0 1 8 10.5M10.5 6a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0m-1 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"},null,-1),n("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-1zm11 1v11h-11v-11z"},null,-1)]))}const P={render:K},Q={class:"list-card-item_detail bg-bg_color"},U={class:"list-card-item_detail--operation"},W={class:"list-card-item_detail--name text-text_color_primary"},X={class:"list-card-item_detail--desc text-text_color_regular"},Y=I({name:"ReCard",__name:"ListCard",props:{product:{type:Object}},emits:["manage-product","delete-item"],setup(e,{emit:t}){const v=e,f=t,x=m=>{f("manage-product",m)},C=m=>{f("delete-item",m)},V=g(()=>["list-card-item",{"list-card-item__disabled":!v.product.isSetup}]),y=g(()=>["list-card-item_detail--logo",{"list-card-item_detail--logo__disabled":!v.product.isSetup}]);return(m,a)=>{const k=i("el-tag"),z=i("IconifyIconOffline"),_=i("el-dropdown-item"),H=i("el-dropdown-menu"),M=i("el-dropdown"),b=i("el-row");return o(),r("div",{class:w(V.value)},[n("div",Q,[l(b,{justify:"space-between"},{default:c(()=>[n("div",{class:w(y.value)},[e.product.type===1?(o(),s(d(j),{key:0})):u("",!0),e.product.type===2?(o(),s(d(G),{key:1})):u("",!0),e.product.type===3?(o(),s(d(T),{key:2})):u("",!0),e.product.type===4?(o(),s(d(P),{key:3})):u("",!0),e.product.type===5?(o(),s(d(D),{key:4})):u("",!0)],2),n("div",U,[l(k,{color:e.product.isSetup?"#00a870":"#eee",effect:"dark",class:"mx-1 list-card-item_detail--operation--tag"},{default:c(()=>[p(h(e.product.isSetup?"已启用":"已停用"),1)]),_:1},8,["color"]),l(M,{trigger:"click",disabled:!e.product.isSetup},{dropdown:c(()=>[l(H,{disabled:!e.product.isSetup},{default:c(()=>[l(_,{onClick:a[0]||(a[0]=$=>x(e.product))},{default:c(()=>a[2]||(a[2]=[p(" 管理 ")])),_:1}),l(_,{onClick:a[1]||(a[1]=$=>C(e.product))},{default:c(()=>a[3]||(a[3]=[p(" 删除 ")])),_:1})]),_:1},8,["disabled"])]),default:c(()=>[l(z,{icon:d(S),class:"text-[24px]"},null,8,["icon"])]),_:1},8,["disabled"])])]),_:1}),n("p",W,h(e.product.name),1),n("p",X,h(e.product.description),1)])],2)}}}),te=B(Y,[["__scopeId","data-v-00983da7"]]);export{te as default};
|