React 17 DOM Attributes Events

React 17 全部事件 DOM Attributes Events

  1. // 剪贴板事件
  2. // Clipboard Events
  3. onCopy?: ClipboardEventHandler<T> | undefined;
  4. onCopyCapture?: ClipboardEventHandler<T> | undefined;
  5. onCut?: ClipboardEventHandler<T> | undefined;
  6. onCutCapture?: ClipboardEventHandler<T> | undefined;
  7. onPaste?: ClipboardEventHandler<T> | undefined;
  8. onPasteCapture?: ClipboardEventHandler<T> | undefined;
  9. // 复合事件
  10. // Composition Events
  11. onCompositionEnd?: CompositionEventHandler<T> | undefined;
  12. onCompositionEndCapture?: CompositionEventHandler<T> | undefined;
  13. onCompositionStart?: CompositionEventHandler<T> | undefined;
  14. onCompositionStartCapture?: CompositionEventHandler<T> | undefined;
  15. onCompositionUpdate?: CompositionEventHandler<T> | undefined;
  16. onCompositionUpdateCapture?: CompositionEventHandler<T> | undefined;
  17. // 焦点事件
  18. // Focus Events
  19. onFocus?: FocusEventHandler<T> | undefined;
  20. onFocusCapture?: FocusEventHandler<T> | undefined;
  21. onBlur?: FocusEventHandler<T> | undefined;
  22. onBlurCapture?: FocusEventHandler<T> | undefined;
  23. // 表单事件
  24. // Form Events
  25. onChange?: FormEventHandler<T> | undefined;
  26. onChangeCapture?: FormEventHandler<T> | undefined;
  27. onBeforeInput?: FormEventHandler<T> | undefined;
  28. onBeforeInputCapture?: FormEventHandler<T> | undefined;
  29. onInput?: FormEventHandler<T> | undefined;
  30. onInputCapture?: FormEventHandler<T> | undefined;
  31. onReset?: FormEventHandler<T> | undefined;
  32. onResetCapture?: FormEventHandler<T> | undefined;
  33. onSubmit?: FormEventHandler<T> | undefined;
  34. onSubmitCapture?: FormEventHandler<T> | undefined;
  35. onInvalid?: FormEventHandler<T> | undefined;
  36. onInvalidCapture?: FormEventHandler<T> | undefined;
  37. // 图像事件
  38. // Image Events
  39. onLoad?: ReactEventHandler<T> | undefined;
  40. onLoadCapture?: ReactEventHandler<T> | undefined;
  41. onError?: ReactEventHandler<T> | undefined; // also a Media Event
  42. onErrorCapture?: ReactEventHandler<T> | undefined; // also a Media Event
  43. // 键盘事件
  44. // Keyboard Events
  45. onKeyDown?: KeyboardEventHandler<T> | undefined;
  46. onKeyDownCapture?: KeyboardEventHandler<T> | undefined;
  47. /** @deprecated */
  48. onKeyPress?: KeyboardEventHandler<T> | undefined;
  49. /** @deprecated */
  50. onKeyPressCapture?: KeyboardEventHandler<T> | undefined;
  51. onKeyUp?: KeyboardEventHandler<T> | undefined;
  52. onKeyUpCapture?: KeyboardEventHandler<T> | undefined;
  53. // 媒体事件
  54. // Media Events
  55. onAbort?: ReactEventHandler<T> | undefined;
  56. onAbortCapture?: ReactEventHandler<T> | undefined;
  57. onCanPlay?: ReactEventHandler<T> | undefined;
  58. onCanPlayCapture?: ReactEventHandler<T> | undefined;
  59. onCanPlayThrough?: ReactEventHandler<T> | undefined;
  60. onCanPlayThroughCapture?: ReactEventHandler<T> | undefined;
  61. onDurationChange?: ReactEventHandler<T> | undefined;
  62. onDurationChangeCapture?: ReactEventHandler<T> | undefined;
  63. onEmptied?: ReactEventHandler<T> | undefined;
  64. onEmptiedCapture?: ReactEventHandler<T> | undefined;
  65. onEncrypted?: ReactEventHandler<T> | undefined;
  66. onEncryptedCapture?: ReactEventHandler<T> | undefined;
  67. onEnded?: ReactEventHandler<T> | undefined;
  68. onEndedCapture?: ReactEventHandler<T> | undefined;
  69. onLoadedData?: ReactEventHandler<T> | undefined;
  70. onLoadedDataCapture?: ReactEventHandler<T> | undefined;
  71. onLoadedMetadata?: ReactEventHandler<T> | undefined;
  72. onLoadedMetadataCapture?: ReactEventHandler<T> | undefined;
  73. onLoadStart?: ReactEventHandler<T> | undefined;
  74. onLoadStartCapture?: ReactEventHandler<T> | undefined;
  75. onPause?: ReactEventHandler<T> | undefined;
  76. onPauseCapture?: ReactEventHandler<T> | undefined;
  77. onPlay?: ReactEventHandler<T> | undefined;
  78. onPlayCapture?: ReactEventHandler<T> | undefined;
  79. onPlaying?: ReactEventHandler<T> | undefined;
  80. onPlayingCapture?: ReactEventHandler<T> | undefined;
  81. onProgress?: ReactEventHandler<T> | undefined;
  82. onProgressCapture?: ReactEventHandler<T> | undefined;
  83. onRateChange?: ReactEventHandler<T> | undefined;
  84. onRateChangeCapture?: ReactEventHandler<T> | undefined;
  85. onSeeked?: ReactEventHandler<T> | undefined;
  86. onSeekedCapture?: ReactEventHandler<T> | undefined;
  87. onSeeking?: ReactEventHandler<T> | undefined;
  88. onSeekingCapture?: ReactEventHandler<T> | undefined;
  89. onStalled?: ReactEventHandler<T> | undefined;
  90. onStalledCapture?: ReactEventHandler<T> | undefined;
  91. onSuspend?: ReactEventHandler<T> | undefined;
  92. onSuspendCapture?: ReactEventHandler<T> | undefined;
  93. onTimeUpdate?: ReactEventHandler<T> | undefined;
  94. onTimeUpdateCapture?: ReactEventHandler<T> | undefined;
  95. onVolumeChange?: ReactEventHandler<T> | undefined;
  96. onVolumeChangeCapture?: ReactEventHandler<T> | undefined;
  97. onWaiting?: ReactEventHandler<T> | undefined;
  98. onWaitingCapture?: ReactEventHandler<T> | undefined;
  99. // 鼠标事件
  100. // Mouse Events
  101. onAuxClick?: MouseEventHandler<T> | undefined;
  102. onAuxClickCapture?: MouseEventHandler<T> | undefined;
  103. onClick?: MouseEventHandler<T> | undefined;
  104. onClickCapture?: MouseEventHandler<T> | undefined;
  105. onContextMenu?: MouseEventHandler<T> | undefined;
  106. onContextMenuCapture?: MouseEventHandler<T> | undefined;
  107. onDoubleClick?: MouseEventHandler<T> | undefined;
  108. onDoubleClickCapture?: MouseEventHandler<T> | undefined;
  109. onDrag?: DragEventHandler<T> | undefined;
  110. onDragCapture?: DragEventHandler<T> | undefined;
  111. onDragEnd?: DragEventHandler<T> | undefined;
  112. onDragEndCapture?: DragEventHandler<T> | undefined;
  113. onDragEnter?: DragEventHandler<T> | undefined;
  114. onDragEnterCapture?: DragEventHandler<T> | undefined;
  115. onDragExit?: DragEventHandler<T> | undefined;
  116. onDragExitCapture?: DragEventHandler<T> | undefined;
  117. onDragLeave?: DragEventHandler<T> | undefined;
  118. onDragLeaveCapture?: DragEventHandler<T> | undefined;
  119. onDragOver?: DragEventHandler<T> | undefined;
  120. onDragOverCapture?: DragEventHandler<T> | undefined;
  121. onDragStart?: DragEventHandler<T> | undefined;
  122. onDragStartCapture?: DragEventHandler<T> | undefined;
  123. onDrop?: DragEventHandler<T> | undefined;
  124. onDropCapture?: DragEventHandler<T> | undefined;
  125. onMouseDown?: MouseEventHandler<T> | undefined;
  126. onMouseDownCapture?: MouseEventHandler<T> | undefined;
  127. onMouseEnter?: MouseEventHandler<T> | undefined;
  128. onMouseLeave?: MouseEventHandler<T> | undefined;
  129. onMouseMove?: MouseEventHandler<T> | undefined;
  130. onMouseMoveCapture?: MouseEventHandler<T> | undefined;
  131. onMouseOut?: MouseEventHandler<T> | undefined;
  132. onMouseOutCapture?: MouseEventHandler<T> | undefined;
  133. onMouseOver?: MouseEventHandler<T> | undefined;
  134. onMouseOverCapture?: MouseEventHandler<T> | undefined;
  135. onMouseUp?: MouseEventHandler<T> | undefined;
  136. onMouseUpCapture?: MouseEventHandler<T> | undefined;
  137. // 选取项目变更的事件
  138. // Selection Events
  139. onSelect?: ReactEventHandler<T> | undefined;
  140. onSelectCapture?: ReactEventHandler<T> | undefined;
  141. // 触摸事件
  142. // Touch Events
  143. onTouchCancel?: TouchEventHandler<T> | undefined;
  144. onTouchCancelCapture?: TouchEventHandler<T> | undefined;
  145. onTouchEnd?: TouchEventHandler<T> | undefined;
  146. onTouchEndCapture?: TouchEventHandler<T> | undefined;
  147. onTouchMove?: TouchEventHandler<T> | undefined;
  148. onTouchMoveCapture?: TouchEventHandler<T> | undefined;
  149. onTouchStart?: TouchEventHandler<T> | undefined;
  150. onTouchStartCapture?: TouchEventHandler<T> | undefined;
  151. // 指针事件
  152. // Pointer Events
  153. onPointerDown?: PointerEventHandler<T> | undefined;
  154. onPointerDownCapture?: PointerEventHandler<T> | undefined;
  155. onPointerMove?: PointerEventHandler<T> | undefined;
  156. onPointerMoveCapture?: PointerEventHandler<T> | undefined;
  157. onPointerUp?: PointerEventHandler<T> | undefined;
  158. onPointerUpCapture?: PointerEventHandler<T> | undefined;
  159. onPointerCancel?: PointerEventHandler<T> | undefined;
  160. onPointerCancelCapture?: PointerEventHandler<T> | undefined;
  161. onPointerEnter?: PointerEventHandler<T> | undefined;
  162. onPointerEnterCapture?: PointerEventHandler<T> | undefined;
  163. onPointerLeave?: PointerEventHandler<T> | undefined;
  164. onPointerLeaveCapture?: PointerEventHandler<T> | undefined;
  165. onPointerOver?: PointerEventHandler<T> | undefined;
  166. onPointerOverCapture?: PointerEventHandler<T> | undefined;
  167. onPointerOut?: PointerEventHandler<T> | undefined;
  168. onPointerOutCapture?: PointerEventHandler<T> | undefined;
  169. onGotPointerCapture?: PointerEventHandler<T> | undefined;
  170. onGotPointerCaptureCapture?: PointerEventHandler<T> | undefined;
  171. onLostPointerCapture?: PointerEventHandler<T> | undefined;
  172. onLostPointerCaptureCapture?: PointerEventHandler<T> | undefined;
  173. // UI Events
  174. onScroll?: UIEventHandler<T> | undefined;
  175. onScrollCapture?: UIEventHandler<T> | undefined;
  176. // 鼠标滚轮事件
  177. // Wheel Events
  178. onWheel?: WheelEventHandler<T> | undefined;
  179. onWheelCapture?: WheelEventHandler<T> | undefined;
  180. // 动画事件
  181. // Animation Events
  182. onAnimationStart?: AnimationEventHandler<T> | undefined;
  183. onAnimationStartCapture?: AnimationEventHandler<T> | undefined;
  184. onAnimationEnd?: AnimationEventHandler<T> | undefined;
  185. onAnimationEndCapture?: AnimationEventHandler<T> | undefined;
  186. onAnimationIteration?: AnimationEventHandler<T> | undefined;
  187. onAnimationIterationCapture?: AnimationEventHandler<T> | undefined;
  188. // 过渡事件
  189. // Transition Events
  190. onTransitionEnd?: TransitionEventHandler<T> | undefined;
  191. onTransitionEndCapture?: TransitionEventHandler<T> | undefined;

(完)