← Back
Editing: index79.js
import{_ as s}from"./index103.js?v=VERSION_NUMBER";import{_ as e}from"./index112.js?v=VERSION_NUMBER";import{u as t,l as a}from"./utils-lib.js?v=VERSION_NUMBER";import{c as l,s as o,w as i,p as r,a4 as n,G as m,q as p,v as c,e as d,A as f,y as u,B as g,x as h,H as w,D as b,aW as _}from"./base-lib.js?v=VERSION_NUMBER";import{S as x,x as j,y as v}from"./validator.js?v=VERSION_NUMBER";import{S as y}from"./index378.js?v=VERSION_NUMBER";import{R as C}from"./index379.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";const L={class:"w-full h-full"},k={class:"leading-[2.5rem] flex items-center text-[#a94442]"},z={class:"flex items-center"},H=l({__name:"index",setup(l){const{mainHeight:H,isRefreshSoftList:S}=t(),{isLoading:E}=o(x()),R=j(),{refreshList:T,importOtherEvent:U,pageChangeEvent:q}=R,{softTableList:A,tablePageConfig:B,TableColumn:D}=o(R);return i((()=>S.value),(s=>{s&&(T("0"),S.value=!1)})),r((()=>T("0"))),n(R.$reset),(t,l)=>{const o=b,i=_,r=a,n=e,x=s,j=m("bt-loading");return p(),c("div",L,[d(y),d(C),d(i,{type:"error","show-icon":!1,closable:!1},{title:f((()=>[u("div",k,[l[7]||(l[7]=g(" 安全提醒:第三方插件上架前,宝塔官方进行了安全审计,但可能还存在安全风险,在生产环境使用前请自行甄别 ")),u("div",z,[d(o,{type:"primary",title:"免费入驻",size:"small",class:"!ml-[.5rem]",onClick:l[0]||(l[0]=s=>h(v)("https://www.bt.cn/developer/"))},{default:f((()=>l[4]||(l[4]=[g("免费入驻")]))),_:1}),d(o,{type:"primary",title:"获取第三方应用",size:"small",class:"!ml-[.5rem]",onClick:l[1]||(l[1]=s=>h(v)("https://www.bt.cn/bbs/forum-40-1.html"))},{default:f((()=>l[5]||(l[5]=[g("获取第三方应用")]))),_:1}),d(o,{title:"导入插件",size:"small",class:"!ml-[.5rem]",onClick:h(U),type:"primary"},{default:f((()=>l[6]||(l[6]=[g(" 导入插件 ")]))),_:1},8,["onClick"])])])])),_:1}),d(x,null,{content:f((()=>[w(d(r,{class:"soft-table",column:h(D),"min-height":h(H),data:h(A),description:"列表为空"},null,8,["column","min-height","data"]),[[j,h(E)],[j,"正在获取软件列表,请稍候...","title"]])])),"footer-right":f((()=>[d(n,{page:h(B).page,"onUpdate:page":l[2]||(l[2]=s=>h(B).page=s),row:h(B).row,"onUpdate:row":l[3]||(l[3]=s=>h(B).row=s),total:h(B).total,rowList:[10,15,20,30,50,100],onChange:h(q)},null,8,["page","row","total","onChange"])])),_:1})])}}});export{H as default};
Save File
Cancel