版博士V2.0程序
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

32 linhas
977 B

  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const UIEvent_1 = __importDefault(require("../UIEvent"));
  7. /**
  8. *
  9. */
  10. class InputEvent extends UIEvent_1.default {
  11. /**
  12. * Constructor.
  13. *
  14. * @param type Event type.
  15. * @param [eventInit] Event init.
  16. */
  17. constructor(type, eventInit = null) {
  18. super(type, eventInit);
  19. this.data = '';
  20. this.dataTransfer = null;
  21. this.inputType = '';
  22. this.isComposing = false;
  23. if (eventInit) {
  24. this.data = eventInit.data || '';
  25. this.dataTransfer = eventInit.dataTransfer || null;
  26. this.inputType = eventInit.inputType || '';
  27. this.isComposing = eventInit.isComposing || false;
  28. }
  29. }
  30. }
  31. exports.default = InputEvent;
  32. //# sourceMappingURL=InputEvent.js.map