Procházet zdrojové kódy

emiting close gallery

tags/0.9.0
J před 6 roky
rodič
revize
a6162323bd

+ 8
- 5
vue-theme/src/components/gallery.vue Zobrazit soubor

4
         li
4
         li
5
             h1 hello world
5
             h1 hello world
6
         li
6
         li
7
-            h1 hello world again        
7
+            h1 hello world again
8
     button(@click="hideGallery") hide
8
     button(@click="hideGallery") hide
9
 </template>
9
 </template>
10
 
10
 
11
 <script>
11
 <script>
12
 export default {
12
 export default {
13
-    props: {fullscreengallery:{
14
-        type: Boolean
15
-    }
13
+    props: {
14
+        fullscreengallery: {
15
+            type: Boolean
16
+        }
16
     },
17
     },
17
     methods: {
18
     methods: {
18
-        hideGallery() {this.show=false}
19
+        hideGallery() {
20
+            this.$emit('fullscreengalleryclose')
21
+        }
19
     }
22
     }
20
 }
23
 }
21
 </script>
24
 </script>

+ 1
- 1
vue-theme/src/pages/single.vue Zobrazit soubor

7
         section
7
         section
8
             h4 {{ posts[$route.params.slug].title }}
8
             h4 {{ posts[$route.params.slug].title }}
9
             .block-wrapper(v-for="block in posts[$route.params.slug].blocks" v-html="block")
9
             .block-wrapper(v-for="block in posts[$route.params.slug].blocks" v-html="block")
10
-        stupidgallery(:fullscreengallery="fullscreengallery")
10
+        stupidgallery(:fullscreengallery="fullscreengallery" :fullscreengalleryclose="fullscreengallery = false")
11
     sidebar(v-if="sidebar" :type="`${type}`")
11
     sidebar(v-if="sidebar" :type="`${type}`")
12
         .shadow
12
         .shadow
13
             h1.t-up single slot
13
             h1.t-up single slot

Načítá se…
Zrušit
Uložit