Last active
August 18, 2020 12:53
-
-
Save Kelin2025/c8a1ab71b74c677024999fdf2ecfe074 to your computer and use it in GitHub Desktop.
Revisions
-
Kelin2025 revised this gist
Apr 23, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <template> <!-- Will add/remove .small if the width is less / greater --> <div class="post__item" v-responsive="{ small: el => el.width <= 500 }"> <img class="post__image" :src="post.image" /> <div class="post__text">{{post.text}}</div> </div> -
Kelin2025 created this gist
Apr 23, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ <template> <!-- Will add/remove .small if the width is less / greater --> <div class="post__item" v-responsive="{ small => el.width <= 500 }"> <img class="post__image" :src="post.image" /> <div class="post__text">{{post.text}}</div> </div> </template> <script> import { ResponsiveDirective } from "vue-responsive-components" export default { props: ["post"], directives: { responsive: ResponsiveDirective } } </script>