index.js 390 B

123456789101112
  1. import { Component, triggerEvent } from '../_util/simply';
  2. import { GridFunctionalProps } from './props';
  3. Component(GridFunctionalProps, {
  4. onTap: function (e) {
  5. var item = e.target.dataset.item;
  6. triggerEvent(this, 'tap', item);
  7. },
  8. onFirstAppear: function (e) {
  9. var item = e.target.dataset.item;
  10. triggerEvent(this, 'firstAppear', item);
  11. }
  12. });