lisenzhou 2 vuotta sitten
vanhempi
commit
d30825e9af
1 muutettua tiedostoa jossa 4 lisäystä ja 10 poistoa
  1. 4
    10
      src/components/PopUp.vue

+ 4
- 10
src/components/PopUp.vue Näytä tiedosto

@@ -18,13 +18,9 @@ const props = defineProps({
18 18
     default: () => {},
19 19
   },
20 20
 });
21
-
22
-
23 21
 </script>
24 22
 
25 23
 <style lang="less" scoped>
26
-
27
-
28 24
 .overlay {
29 25
   position: fixed;
30 26
   top: 0;
@@ -46,6 +42,7 @@ const props = defineProps({
46 42
     display: flex;
47 43
     flex-direction: column;
48 44
     // background: fff;
45
+    overflow-y: auto;
49 46
     .image {
50 47
       width: 100%;
51 48
     }
@@ -56,14 +53,11 @@ const props = defineProps({
56 53
       text-indent: 42px;
57 54
       margin-top: 50px;
58 55
       color: #fff;
59
-      overflow-y: auto;
60
-    }
61
-
62
-    .text::-webkit-scrollbar {
63
-      display: none;
64 56
     }
65 57
   }
66
-
58
+  .warp::-webkit-scrollbar {
59
+    display: none;
60
+  }
67 61
   animation: fade-in; /*动画名称*/
68 62
   animation-duration: 0.7s; /*动画持续时间*/
69 63
 }