Blame view

src/views/demo/feat/img-preview/index.vue 609 Bytes
陈文彬 authored
1
<template>
2
  <PageWrapper title="图片预览示例">
vben authored
3
    <ImagePreview :imageList="imgList" />
4
  </PageWrapper>
陈文彬 authored
5
6
7
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
8
  import { ImagePreview } from '/@/components/Preview/index';
9
10
  import { PageWrapper } from '/@/components/Page';
陈文彬 authored
11
12
13
14
15
16
  const imgList: string[] = [
    'https://picsum.photos/id/66/346/216',
    'https://picsum.photos/id/67/346/216',
    'https://picsum.photos/id/68/346/216',
  ];
  export default defineComponent({
17
    components: { PageWrapper, ImagePreview },
陈文彬 authored
18
    setup() {
19
      return { imgList };
陈文彬 authored
20
21
22
    },
  });
</script>