Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

autoImage.js 805B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * @Author: gaorf30153 gaorf30153@hundsun.com
  3. * @Date: 2024-06-20 09:16:18
  4. * @LastEditors: gaorf30153 gaorf30153@hundsun.com
  5. * @LastEditTime: 2024-06-23 17:08:05
  6. * @FilePath: \wxminipro\plugin\components\autoImage\autoImage.js
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. Component({
  10. properties: {
  11. shape: {
  12. type: String,
  13. value: "square",
  14. },
  15. mode: {
  16. type: String,
  17. value: "aspectFit",
  18. },
  19. src: {
  20. type: String,
  21. value: "",
  22. },
  23. style: {
  24. type: String,
  25. value: "width: 100%;height: 400rpx",
  26. },
  27. lazyLoad: {
  28. type: Boolean,
  29. value: false,
  30. },
  31. },
  32. data: {},
  33. methods: {
  34. clickImage(e) {
  35. this.triggerEvent("click")
  36. },
  37. },
  38. })