mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-02 10:57:24 +08:00
2 lines
4.4 KiB
JavaScript
2 lines
4.4 KiB
JavaScript
import{k as c,e as o,g as n,a1 as B,d as I,p as g,v as w,f as a,h as r,w as i,b as d,i as u,u as s,j as h,t as p,_ as S}from"./index-DMqaFtX4.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(),c("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(),c("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},R={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-service",viewBox:"0 0 16 16"};function E(e,t){return o(),c("svg",R,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 F={render:E},T={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-calendar",viewBox:"0 0 16 16"};function q(e,t){return o(),c("svg",T,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:q},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(),c("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={viewBox:"0 0 24 24",width:"1em",height:"1em"};function U(e,t){return o(),c("svg",Q,t[0]||(t[0]=[n("path",{fill:"currentColor",d:"M12 3c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2m0 14c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2m0-7c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2"},null,-1)]))}const W=B({name:"ri-more-2-fill",render:U}),X={class:"list-card-item_detail bg-bg_color"},Y={class:"list-card-item_detail--operation"},Z={class:"list-card-item_detail--name text-text_color_primary"},ee={class:"list-card-item_detail--desc text-text_color_regular"},te=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}]),k=g(()=>["list-card-item_detail--logo",{"list-card-item_detail--logo__disabled":!v.product.isSetup}]);return(m,l)=>{const y=r("el-tag"),M=r("IconifyIconOffline"),_=r("el-dropdown-item"),z=r("el-dropdown-menu"),H=r("el-dropdown"),$=r("el-row");return o(),c("div",{class:w(V.value)},[n("div",X,[a($,{justify:"space-between"},{default:i(()=>[n("div",{class:w(k.value)},[e.product.type===1?(o(),d(s(j),{key:0})):u("",!0),e.product.type===2?(o(),d(s(G),{key:1})):u("",!0),e.product.type===3?(o(),d(s(F),{key:2})):u("",!0),e.product.type===4?(o(),d(s(P),{key:3})):u("",!0),e.product.type===5?(o(),d(s(D),{key:4})):u("",!0)],2),n("div",Y,[a(y,{color:e.product.isSetup?"#00a870":"#eee",effect:"dark",class:"mx-1 list-card-item_detail--operation--tag"},{default:i(()=>[h(p(e.product.isSetup?"已启用":"已停用"),1)]),_:1},8,["color"]),a(H,{trigger:"click",disabled:!e.product.isSetup},{dropdown:i(()=>[a(z,{disabled:!e.product.isSetup},{default:i(()=>[a(_,{onClick:l[0]||(l[0]=b=>x(e.product))},{default:i(()=>l[2]||(l[2]=[h(" 管理 ")])),_:1}),a(_,{onClick:l[1]||(l[1]=b=>C(e.product))},{default:i(()=>l[3]||(l[3]=[h(" 删除 ")])),_:1})]),_:1},8,["disabled"])]),default:i(()=>[a(M,{icon:s(W),class:"text-[24px]"},null,8,["icon"])]),_:1},8,["disabled"])])]),_:1}),n("p",Z,p(e.product.name),1),n("p",ee,p(e.product.description),1)])],2)}}}),ne=S(te,[["__scopeId","data-v-28137412"]]);export{ne as default};
|