index.js 295 B

1234567
  1. import { Component, triggerEvent, getValueFromProps } from '../../_util/simply';
  2. import { ChecklistItemDefaultProps } from './props';
  3. Component(ChecklistItemDefaultProps, {
  4. onChecklistItemClick: function () {
  5. triggerEvent(this, 'change', getValueFromProps(this, 'item'));
  6. },
  7. });