tabs-gUmZlUHH.js 2.4 KB

1
  1. import{s}from"./store-F66kEjW2.js";import{g as I,m as B,c as v,i as D}from"./index-3qA-WN0K.js";import{P as L,_ as S}from"./index-EwE51S_X.js";import{d as U,K as n,aq as $,e as o,f as t,am as z,u as a,y as r,L as i,F as p,j as m,t as c,m as u,B as g,C as E,i as l}from"./vue-A59npLRR.js";import"./echarts-cxb9vJr1.js";const F=["onClick"],j={class:"goods-footer"},q={key:0,class:"goods-tag"},A={class:"goods-title"},K={class:"goods-data"},P={class:"download-count"},G={key:0,class:"goods-price"},H={class:"original-price"},J={class:"current-price"},M={key:1,class:"goods-price"},O=U({__name:"tabs",setup(Q){const h=()=>{D()};return(b,y)=>{const k=n("el-image"),f=n("el-tag"),T=n("Icon"),C=n("el-empty"),w=n("el-tab-pane"),N=n("el-tabs"),V=$("loading");return o(),t("div",null,[z((o(),r(N,{"element-loading-text":b.$t("module.Loading"),modelValue:a(s).table.params.activeTab,"onUpdate:modelValue":y[0]||(y[0]=d=>a(s).table.params.activeTab=d),type:"border-card",class:"store-tabs",onTabChange:h},{default:i(()=>[(o(!0),t(p,null,g(a(s).table.category,d=>(o(),r(w,{name:d.id.toString(),key:d.id,label:d.name,class:"store-tab-pane"},{default:i(()=>[a(s).table.modules[a(s).table.params.activeTab]&&a(s).table.modules[a(s).table.params.activeTab].length>0?(o(!0),t(p,{key:0},g(a(s).table.modules[a(s).table.params.activeTab],e=>(o(),t("div",{class:"goods",key:e.uid},[l("div",{onClick:_=>a(I)(e.uid),class:"goods-item suspension"},[m(k,{loading:"lazy",fit:"contain",class:"goods-img",src:e.logo?e.logo:a(L)("/static/images/local-module-logo.png")},null,8,["src"]),l("div",j,[e.tags&&e.tags.length>0?(o(),t("div",q,[(o(!0),t(p,null,g(e.tags,(_,x)=>(o(),r(f,{type:_.type,key:x},{default:i(()=>[u(c(_.name),1)]),_:2},1032,["type"]))),128))])):E("",!0),l("div",A,c(e.title),1),l("div",K,[l("span",P,[m(T,{name:"fa fa-download",color:"#c0c4cc",size:"13"}),u(" "+c(e.downloads?e.downloads:"-"),1)]),e.state===a(B).UNINSTALLED?(o(),t("span",G,[l("span",H,c(a(v)(e.original_price,e.currency_select)),1),l("span",J,c(a(v)(e.present_price,e.currency_select)),1)])):(o(),t("div",M,[m(f,{effect:"dark",type:e.stateTag.type},{default:i(()=>[u(c(e.stateTag.text),1)]),_:2},1032,["type"])]))])])],8,F)]))),128)):(o(),r(C,{key:1,class:"modules-empty",description:b.$t("module.No more")},null,8,["description"]))]),_:2},1032,["name","label"]))),128))]),_:1},8,["element-loading-text","modelValue"])),[[V,a(s).loading.table]])])}}}),ee=S(O,[["__scopeId","data-v-2df99a09"]]);export{ee as default};