| 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
30
31
 | | <template> |  |   <el-image fit="cover" :src="src" @click="handlePreview" class="pro-image-with-preview" /> |  | </template> |  |   |  | <script setup lang="ts"> |  | import { bolePreview } from '@bole-core/components'; |  |   |  | defineOptions({ |  |   name: 'ProImageWithPreview', |  | }); |  |   |  | type Props = { |  |   src: string; |  | }; |  |   |  | const props = withDefaults(defineProps<Props>(), {}); |  |   |  | function handlePreview() { |  |   bolePreview({ |  |     fileUrl: props.src, |  |   }); |  | } |  | </script> |  |   |  | <style lang="scss" scoped> |  | @use '@/style/common.scss' as *; |  |   |  | .pro-image-with-preview { |  |   cursor: pointer; |  | } |  | </style> | 
 |