custom-swiper-item.js 452 B

123456789101112131415161718192021222324
  1. const processDataSet = require('../utils/processDataSet')
  2. Component({
  3. data: {},
  4. props: {
  5. },
  6. methods: {
  7. tapHandler(e) {
  8. if (this.props.onTap) {
  9. const tapEvent = processDataSet(e, this.props)
  10. this.props.onTap(tapEvent)
  11. }
  12. },
  13. catchTapHandler(e) {
  14. if (this.props.catchTap) {
  15. const tapEvent = processDataSet(e, this.props)
  16. this.props.catchTap(tapEvent)
  17. }
  18. },
  19. },
  20. })