mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-19 01:38:10 +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 a,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-e064b265.js";import{b as V,d as P}from"./index-24e005c6.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=o=>(D("data-v-bbce4ec3"),o=o(),N(),o),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]"},et=E({__name:"overview",setup(o){const d=H(),v=V(),e=C(!0),s=L({appList:[]});(()=>{e.value=!0,P().then(p=>{s.appList=p.data,e.value=!1}).catch(()=>{e.value=!1})})();const _=()=>{d.push("app/app_store")},h=p=>{let c=v.addonIndexRoute[p];c?d.push({name:c}):_()};return(p,c)=>{const g=Q,b=U,w=$,y=q;return B((a(),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,[(a(!0),m(I,null,S(s.appList,(r,k)=>(a(),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(r.key)},[t("div",X,[u(b,{class:"w-[40px] h-[40px] rounded-[8px]",src:n(j)(r.icon),fit:"contain"},{error:x(()=>[Y]),_:2},1032,["src"]),t("div",Z,i(r.title),1)]),t("div",tt,i(r.desc),1)],8,W))),128)),!s.appList.length&&!e.value?(a(),A(w,{key:0,description:n(l)("noPlug"),class:"mx-auto"},null,8,["description"])):F("",!0)])],2)])),[[y,e.value]])}}});const Rt=G(et,[["__scopeId","data-v-bbce4ec3"]]);export{Rt as default};
|