|
@@ -1,15 +1,17 @@
|
1
|
1
|
<template>
|
2
|
|
- <img class="page-image" :src="src" alt="" @load="onLoad">
|
3
|
|
- <template v-if="actions">
|
4
|
|
- <CoverBtn
|
5
|
|
- v-for="(action, inx) in actions"
|
6
|
|
- :key="inx"
|
7
|
|
- :center="centers[inx]"
|
8
|
|
- :width="action.width"
|
9
|
|
- :height="action.height"
|
10
|
|
- @click="action.onClick"
|
11
|
|
- />
|
12
|
|
- </template>
|
|
2
|
+ <div class="img-wrapper">
|
|
3
|
+ <img class="page-image" :src="src" alt="" @load="onLoad">
|
|
4
|
+ <template v-if="actions">
|
|
5
|
+ <CoverBtn
|
|
6
|
+ v-for="(action, inx) in actions"
|
|
7
|
+ :key="inx"
|
|
8
|
+ :center="centers[inx]"
|
|
9
|
+ :width="action.width"
|
|
10
|
+ :height="action.height"
|
|
11
|
+ @click="action.onClick"
|
|
12
|
+ />
|
|
13
|
+ </template>
|
|
14
|
+ </div>
|
13
|
15
|
</template>
|
14
|
16
|
|
15
|
17
|
<script setup>
|
|
@@ -41,8 +43,15 @@
|
41
|
43
|
</script>
|
42
|
44
|
|
43
|
45
|
<style lang="less" scoped>
|
44
|
|
-.page-image {
|
45
|
|
- display: block;
|
46
|
|
- width: 100%;
|
|
46
|
+
|
|
47
|
+.img-wrapper {
|
|
48
|
+ position: relative;
|
|
49
|
+
|
|
50
|
+ .page-image {
|
|
51
|
+ display: block;
|
|
52
|
+ width: 100%;
|
|
53
|
+ }
|
|
54
|
+
|
47
|
55
|
}
|
|
56
|
+
|
48
|
57
|
</style>
|