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>
| <div class="img-option-prefix">
| <img draggable="false" :src="imgUrlTrans(url)" />
| </div>
| </template>
|
| <script setup lang="ts">
| import { imgUrlTrans } from '@/utils/imgUtils'
|
| withDefaults(
| defineProps<{
| url: any
| }>(),
| {}
| )
| </script>
|
| <style scoped lang="less">
| .img-option-prefix {
| width: 20px;
| height: 20px;
| display: flex;
| flex-direction: column;
| align-content: center;
| img {
| border-radius: 4px;
| width: 100%;
| height: 100%;
| }
| }
| </style>
|
|