You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.3 KiB
1 lines
2.3 KiB
import{d as y,f as N,O as x,n as C,h as g,c as k,e as n,w as i,a as p,t as c,u as l,y as w,I as B,N as d,i as E,af as z,E as L,ah as D,a3 as S,_ as T,$ as j}from"./index-6010b07e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import{q as O}from"./diy-5ff717bd.js";const V={class:"main-container"},$={class:"flex justify-between items-center"},J={class:"text-[20px]"},R={class:"mt-[16px] flex justify-end"},nt=y({__name:"tabbar",setup(U){const _=N(),f=x().meta.title,t=C({page:1,limit:10,total:0,loading:!0,data:[]});((o=1)=>{t.loading=!0,t.page=o,O({}).then(a=>{t.loading=!1;const s=Math.ceil(a.data.length/t.limit),u=JSON.parse(JSON.stringify(a.data)),m=[];for(let r=0;r<s;r++)m[r]=u.splice(0,t.limit);t.data=m[t.page-1],t.total=a.data.length}).catch(()=>{t.loading=!1})})();const b=o=>{_.push("/diy/tabbar_edit?key="+o.key)};return(o,a)=>{const s=z,u=L,m=D,r=S,h=T,v=j;return g(),k("div",V,[n(h,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[p("div",$,[p("span",J,c(l(f)),1)]),w((g(),B(m,{class:"mt-[20px]",data:t.data,size:"large"},{empty:i(()=>[p("span",null,c(t.loading?"":l(d)("emptyData")),1)]),default:i(()=>[n(s,{prop:"title",label:l(d)("title"),"min-width":"120"},{default:i(({row:e})=>[p("span",null,c(e.info.title),1)]),_:1},8,["label"]),n(s,{prop:"key",label:l(d)("key"),"min-width":"80"},null,8,["label"]),n(s,{label:l(d)("operation"),fixed:"right",align:"right","min-width":"160"},{default:i(({row:e})=>[n(u,{type:"primary",link:"",onClick:I=>b(e)},{default:i(()=>[E(c(l(d)("edit")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[v,t.loading]]),p("div",R,[n(r,{"current-page":t.page,"onUpdate:current-page":a[0]||(a[0]=e=>t.page=e),"page-size":t.limit,"onUpdate:page-size":a[1]||(a[1]=e=>t.limit=e),layout:"total, sizes, prev, pager, next, jumper",total:t.total,onSizeChange:a[2]||(a[2]=e=>o.loadbottomNavList()),onCurrentChange:o.loadbottomNavList},null,8,["current-page","page-size","total","onCurrentChange"])])]),_:1})])}}});export{nt as default};
|
|
|