Files
aiot-platform-ui/apps/web-antd/dist/js/index-o49fvyLb.js
lzh 35c3d0e06e
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-18 16:18:59 +08:00

2 lines
1.9 KiB
JavaScript

var p=(f,i,s)=>new Promise((u,e)=>{var r=a=>{try{l(s.next(a))}catch(t){e(t)}},c=a=>{try{l(s.throw(a))}catch(t){e(t)}},l=a=>a.done?u(a.value):Promise.resolve(a.value).then(r,c);l((s=s.apply(f,i)).next())});import{bt as v,aj as w,aC as S,bS as y}from"./bootstrap-CW2RsBQq.js";import{g as z}from"./index-BA4-Ew4A.js";import{_}from"./page.vue_vue_type_script_setup_true_lang-T8l68R_0.js";import{m as C,b9 as d,b7 as k,v as x,ab as N,b2 as g,bJ as V,ae as h,j as m,u as n,ad as b,I as B,bb as I,ca as U}from"../jse/index-index-Cy8amzIl.js";const j={class:"bg-card p-5"},L={class:"grid grid-cols-[repeat(auto-fill,minmax(200px,1fr))] gap-2.5 bg-card shadow-sm"},$=C({__name:"index",setup(f){const i=d(!0),s=d([]),u=d(0),e=k({pageNo:1,pageSize:10,publicStatus:!0,prompt:void 0});function r(){return p(this,null,function*(){i.value=!0;try{const a=yield z(e);s.value=a.list,u.value=a.total}finally{i.value=!1}})}const c=U(r,80);function l(){e.pageNo=1,r()}return x(()=>p(null,null,function*(){yield r()})),(a,t)=>(g(),N(n(_),{"auto-content-height":""},{default:V(()=>[h("div",j,[m(n(v).Search,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=o=>e.prompt=o),class:"mb-5 w-full",size:"large",placeholder:"请输入要搜索的内容",onKeyup:w(l,["enter"])},null,8,["modelValue"]),h("div",L,[(g(!0),b(B,null,I(s.value,o=>(g(),b("div",{key:o.id,class:"relative cursor-pointer overflow-hidden bg-card transition-transform duration-300 hover:scale-105"},[m(n(S),{src:o.picUrl,class:"block h-auto w-full transition-transform duration-300 hover:scale-110"},null,8,["src"])]))),128))]),m(n(y),{total:u.value,"show-total":o=>`${o}`,"show-quick-jumper":"","show-size-changer":"",current:e.pageNo,"onUpdate:current":t[1]||(t[1]=o=>e.pageNo=o),"page-size":e.pageSize,"onUpdate:pageSize":t[2]||(t[2]=o=>e.pageSize=o),onChange:n(c),onShowSizeChange:n(c),class:"mt-5"},null,8,["total","show-total","current","page-size","onChange","onShowSizeChange"])])]),_:1}))}});export{$ as default};