img_pop.vue 373 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <view class="pop_ocy" @click="close()">
  3. <image :src="img" mode="widthFix" style="width: 100%;"></image>
  4. </view>
  5. </template>
  6. <script>
  7. export default{
  8. props:['img'],
  9. methods:{
  10. close(){
  11. this.$emit("close_img")
  12. }
  13. }
  14. }
  15. </script>
  16. <style scoped>
  17. image{
  18. display: block;
  19. width: 100%;
  20. height: 100%;
  21. align-self: center;
  22. }
  23. </style>