custom-label.js 398 B

1234567891011121314151617
  1. const processDataSet = require('../utils/processDataSet')
  2. Component({
  3. props: {
  4. for: '',
  5. },
  6. methods: {
  7. tapHandler(e) {
  8. const tapEvent = processDataSet(e, this.props)
  9. this.props.onTap && this.props.onTap(tapEvent)
  10. },
  11. catchtapHandler(e) {
  12. const tapEvent = processDataSet(e, this.props)
  13. this.props.catchTap && this.props.catchTap(tapEvent)
  14. },
  15. },
  16. })