mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-05 20:48:11 +00:00
2 lines
2.8 KiB
JavaScript
2 lines
2.8 KiB
JavaScript
import{d as E,r as C,R as L,Q as B,e as r,f as m,g as t,B as i,u as n,y as u,x,F as I,z as S,v as A,H as F,n as z,bl as D,bm as N}from"./base-d77b0726.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as R}from"./app_store_default-c4798c2d.js";import{t as l}from"./index-f3c0482e.js";import{b as V,d as P}from"./index-e89181d8.js";import{d as j}from"./common-56ee0a80.js";import{b as H}from"./vue-router-57155f94.js";import{E as Q}from"./index-91bdda63.js";import{E as U}from"./index-435afe75.js";import{E as $}from"./index-294b617f.js";import{v as q}from"./directive-08cd03ab.js";import{_ as G}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-704f0685.js";import"./index-331c6de1.js";import"./index-e37943c3.js";import"./index-9e51ba8b.js";import"./typescript-defaf979.js";import"./aria-60e0cdc6.js";import"./index-de9bede2.js";import"./index-f2dc9b9f.js";import"./index-6245131d.js";import"./index-3b19c3d7.js";import"./index-a20d1a31.js";import"./debounce-8a1738b0.js";import"./index-d1e433eb.js";import"./position-09adcf79.js";import"./scroll-59301fd6.js";const f=e=>(D("data-v-fc5056aa"),e=e(),N(),e),J={class:"main-container"},K={class:"flex justify-between items-center"},M={class:"font-600 text-[20px] text-[#222]"},O=f(()=>t("span",{class:"iconfont iconanzhuang mr-[9px]"},null,-1)),T={class:"flex flex-wrap mt-[28px]"},W=["onClick"],X={class:"flex items-center"},Y=f(()=>t("div",{class:"image-slot"},[t("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:R})],-1)),Z={class:"flex-1 font-600 text-[14px] text-[#222] ml-[12px]"},tt={class:"font-500 text-[13px] text-[#6D7278] mt-[14px]"},ot=E({__name:"overview",setup(e){const d=H(),v=V(),o=C(!1),s=L({appList:[]});(()=>{o.value=!0,P().then(a=>{s.appList=a.data,o.value=!1}).catch(()=>{o.value=!1})})();const _=()=>{d.push("app/app_store")},h=a=>{let c=v.addonIndexRoute[a];c?d.push({name:c}):_()};return(a,c)=>{const g=Q,b=U,w=$,y=q;return B((r(),m("div",J,[t("div",{class:z(["h-[480px] box-border px-[60px] pt-[40px]",s.appList.length?"overview-top":""])},[t("div",K,[t("div",M,i(n(l)("app")),1),u(g,{onClick:_},{default:x(()=>[O,t("span",null,i(n(l)("installApp")),1)]),_:1})]),t("div",T,[(r(!0),m(I,null,S(s.appList,(p,k)=>(r(),m("div",{key:k,class:"app-item w-[284px] box-border p-[18px] pb-[24px] bg-[#fff] rounded-[8px] cursor-pointer mr-[24px] mb-[24px]",onClick:st=>h(p.key)},[t("div",X,[u(b,{class:"w-[40px] h-[40px] rounded-[8px]",src:n(j)(p.icon),fit:"contain"},{error:x(()=>[Y]),_:2},1032,["src"]),t("div",Z,i(p.title),1)]),t("div",tt,i(p.desc),1)],8,W))),128)),!s.appList.length&&!o.value?(r(),A(w,{key:0,description:n(l)("noPlug"),class:"mx-auto"},null,8,["description"])):F("",!0)])],2)])),[[y,o.value]])}}});const Rt=G(ot,[["__scopeId","data-v-fc5056aa"]]);export{Rt as default};
|