cats-image.vue 634 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <image
  3. class="cats"
  4. v-show="is_loading" @load="imgLoad"
  5. src="./image/cats.png" :class="theme + '-m-back ' + theme"
  6. ></image>
  7. </template>
  8. <script>
  9. export default {
  10. name: "cats-image",
  11. props: {
  12. theme: String
  13. },
  14. data() {
  15. return {
  16. is_loading: false
  17. }
  18. },
  19. methods: {
  20. imgLoad() {
  21. this.is_loading = true;
  22. }
  23. }
  24. }
  25. </script>
  26. <style scoped lang="scss">
  27. .cats {
  28. width:#{56rpx};
  29. height:#{56rpx};
  30. }
  31. </style>