import{d as _,U as o,a2 as f,ad as h,af as r,a4 as a,k as n,G as w}from"./vue-vendor-CxLCUzY4.js";import{c as C,I as j}from"./index-Bn2zmO2L.js";import{P as I}from"./index-D55rh6hR.js";import{_ as P}from"./index-CLZzJyTP.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useContentHeight-DLfJuPsF.js";import"./useWindowSizeFn-D9PllI8g.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useContentViewHeight-BIb_dTbE.js";import"./usePageContext-FyDvfV_K.js";import"./injectionKey-DPVn4AgL.js";const p=[{src:"https://jeecgos.oss-cn-beijing.aliyuncs.com/upload/test/login_1658829954004.png",width:300},{src:"https://jeecgos.oss-cn-beijing.aliyuncs.com/upload/test/home_index_1658830084684.png",width:300},{src:"https://jeecgos.oss-cn-beijing.aliyuncs.com/upload/test/design_1658830200539.png",width:300},{src:"https://static.jeecg.com/upload/test/13_1592320121058.png",width:300},{src:"https://static.jeecg.com/upload/test/16_1592320251436.png",width:300}],v=_({components:{PageWrapper:I,ImagePreview:j},setup(){function e(){const t=({index:s,url:m,dom:u})=>{};let i=p.map(s=>s.src);C({imageList:i,defaultWidth:700,rememberState:!0,onImgLoad:t})}return{imgList:p,openImg:e}}});function b(e,t,i,s,m,u){const c=o("ImagePreview"),d=o("a-divider"),g=o("a-button"),l=o("PageWrapper");return f(),h(l,{title:"图片预览示例"},{default:r(()=>[t[1]||(t[1]=a("h1",null,"有预览图",-1)),n(c,{imageList:e.imgList},null,8,["imageList"]),n(d),t[2]||(t[2]=a("h1",null,"无预览图",-1)),n(g,{onClick:e.openImg,type:"primary"},{default:r(()=>t[0]||(t[0]=[w("点击预览")])),_:1},8,["onClick"])]),_:1})}const A=P(v,[["render",b]]);export{A as default};
