yanjinhui
10 天以前 c5de0d98241f8c8349fa38851b77efcfc61e4d26
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script setup lang="ts">
import { ContentWrap } from '@/components/ContentWrap'
import { createImageViewer } from '@/components/ImageViewer'
import { useI18n } from '@/hooks/web/useI18n'
 
const { t } = useI18n()
 
const open = () => {
  createImageViewer({
    urlList: [
      'https://images6.alphacoders.com/657/thumbbig-657194.webp',
      'https://images3.alphacoders.com/677/thumbbig-677688.webp',
      'https://images4.alphacoders.com/200/thumbbig-200966.webp',
      'https://images5.alphacoders.com/657/thumbbig-657248.webp',
      'https://images3.alphacoders.com/679/thumbbig-679917.webp',
      'https://images3.alphacoders.com/737/thumbbig-73785.webp'
    ]
  })
}
</script>
 
<template>
  <ContentWrap
    :title="t('imageViewerDemo.imageViewer')"
    :message="t('imageViewerDemo.imageViewerDes')"
  >
    <BaseButton type="primary" @click="open">{{ t('imageViewerDemo.open') }}</BaseButton>
  </ContentWrap>
</template>