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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
| <template>
| <div class="panorama-container">
| <div class="title">
| <div>{{ title }}</div>
| <div class="close cursor-p" @click="$emit('closePanoramaPopup')">
| <i class="fa fa-close"></i>
| </div>
| </div>
| <div class="content">
| <iframe class="w100 h100" :src="url" frameborder="0"></iframe>
| </div>
| </div>
| </template>
|
| <script setup>
| const {
| title,
| url
| } = defineProps({
| title: {
| default: ''
| },
| url: {
| default: ''
| }
| })
|
| </script>
|
| <style lang="scss" scoped>
| .panorama-container {
| display: flex;
| flex-direction: column;
| position: fixed;
| top: 0;
| left: 0;
| bottom: 0;
| right: 0;
| z-index: 999;
| background: transparent;
| /* fallback for old browsers */
| // background: -webkit-linear-gradient(to right, #3a7bd5, #00d2ff);
| /* Chrome 10-25, Safari 5.1-6 */
| // background: linear-gradient(to right, #3a7bd5, #00d2ff);
| background-color: rgba($color: #000000, $alpha: 1.0);
| /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
| pointer-events: auto;
| box-shadow: inset 0 0 200px #0377eb;
|
| .title {
| padding: 0 10px;
| display: flex;
| justify-content: space-between;
| height: 44px;
| line-height: 44px;
| color: #fff;
|
| .close {
| cursor: pointer;
| }
| }
|
| .content {
| padding: 0 10px 10px;
| width: 100%;
| height: 0;
| flex: 1;
| }
| }
| </style>
|
|