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.

2 lines
1.0 KiB

import{d as g,ay as _,m as v,f as w,ak as y,aT as P,aU as l,o,g as i,b as c,w as m,aV as k,F as I,bt as h,a as C,aW as L,aP as u,bq as $,x as b}from"./index-f4658ae7.js";import{I as d}from"./index-a86b513c.js";import"./isNumber-0bc0d001.js";import"./css-06fbc100.js";const G=g({name:"ImagePreview",components:{Image:d,PreviewGroup:d.PreviewGroup},props:{functional:_.bool,imageList:{type:Array}},setup(e){const{prefixCls:t}=v("image-preview"),n=w(()=>{const{imageList:a}=e;return a?a.map(s=>y(s)?{src:s,placeholder:!1}:s):[]});return{prefixCls:t,getImageList:n}}});function x(e,t,n,a,s,B){const p=l("Image"),f=l("PreviewGroup");return o(),i("div",{class:b(e.prefixCls)},[c(f,null,{default:m(()=>[!e.imageList||e.$slots.default?k(e.$slots,"default",{key:0}):(o(!0),i(I,{key:1},h(e.getImageList,r=>(o(),C(p,L(u({key:r.src},r)),$({_:2},[r.placeholder?{name:"placeholder",fn:m(()=>[c(p,u(r,{src:r.placeholder,preview:!1}),null,16,["src"])]),key:"0"}:void 0]),1040))),128))]),_:3})],2)}const V=P(G,[["render",x]]);export{V as default};