index.js 538 B

123456789101112131415161718192021222324
  1. import { Component, triggerEventOnly, triggerCatchEvent, } from '../../_util/simply';
  2. Component({
  3. image: '',
  4. title: '',
  5. brief: '',
  6. arrow: false,
  7. extra: '',
  8. extraBrief: '',
  9. disabled: false,
  10. showDivider: true,
  11. }, {
  12. onTap: function (e) {
  13. if (this.props.disabled) {
  14. return;
  15. }
  16. triggerEventOnly(this, 'tap', e);
  17. },
  18. catchTap: function (e) {
  19. if (this.props.disabled) {
  20. return;
  21. }
  22. triggerCatchEvent(this, 'catchTap', e);
  23. },
  24. });