commentsCarousel.js 510 B

12345678910111213141516171819202122232425262728293031323334
  1. // pages/components/blocks/commentsCarousel/commentsCarousel.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. carouselImgs: {
  8. type: Array
  9. },
  10. current: {
  11. type: Number
  12. }
  13. },
  14. /**
  15. * 组件的初始数据
  16. */
  17. data: {
  18. indicatorDots: false,
  19. vertical: false,
  20. autoplay: false,
  21. interval: 2000,
  22. duration: 500,
  23. },
  24. /**
  25. * 组件的方法列表
  26. */
  27. methods: {
  28. hideCarousel() {
  29. this.triggerEvent('hideCarousel')
  30. }
  31. }
  32. })