import { previewImages } from '@brewer/beerui'
const list = ['/images/1.jpg', '/images/2.jpg', '/images/3.jpg', '/images/4.jpg', '/images/5.jpg', '/images/6.jpg']
const clickImage = (src: string) => {
const p1 = previewImages(src, list)
p1.watchHandle(res => console.log(res))
}
{#each list as item}
<img class='demo-list-image' on:click={() => {clickImage(item)}} src={item} alt=''>
{/each}