2 lines
1.1 KiB
Vue
2 lines
1.1 KiB
Vue
|
|
import{a7 as l,a as d,o as r,c,b as v,aa as h,a9 as f,e as m,w,j as x,ab as u}from"./vendor.3937d42d.js";import{_ as L}from"./index.e47da145.js";const C={name:"pdfImage",props:{urlList:Array},watch:{urlList(t,s){this.state.imageList=t}},setup(t,s){const a=l({imageList:[],imageList1:[],show:!1,index:0});a.imageList=t.urlList;function e(i,o){a.show=!0,a.index=o}function _(i){a.index=i}return{state:a,previewImge:e,onChange:_}}},I={id:"pdf-image"},k={class:"image-content"},y={class:"image-list"};function V(t,s,a,e,_,i){const o=d("van-image"),g=d("van-image-preview");return r(),c("div",I,[v("div",k,[(r(!0),c(h,null,f(e.state.imageList,(n,p)=>(r(),c("div",y,[m(o,{src:n,onClick:B=>e.previewImge(n,p)},null,8,["src","onClick"])]))),256))]),m(g,{show:e.state.show,"onUpdate:show":s[0]||(s[0]=n=>e.state.show=n),images:e.state.imageList,"start-position":e.state.index,onChange:e.onChange},{index:w(()=>[x("\u7B2C"+u(e.state.index+1)+"\u9875",1)]),_:1},8,["show","images","start-position","onChange"])])}var j=L(C,[["render",V],["__scopeId","data-v-3d70af19"]]);export{j as p};
|