From bf1176a1887b581db54f4ee2205fc32c8ac36a8c Mon Sep 17 00:00:00 2001 From: qinjianqi Date: Tue, 26 Nov 2024 19:06:41 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IB77OT]=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4ahooks=E7=9A=84useEventListener=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-ahooks.md | 1 - zh-cn/react-ahooks.md | 1 - 2 files changed, 2 deletions(-) diff --git a/en/react-ahooks.md b/en/react-ahooks.md index 6d48fe43..43ada9d9 100644 --- a/en/react-ahooks.md +++ b/en/react-ahooks.md @@ -186,7 +186,6 @@ This document is verified based on the following versions: | -------- | --------------------- | ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------: | | Dom | useDrop & useDrag | 处理元素拖拽的 Hook | Property 'document' doesn't exist Properties“document”不存在 | NO | | Dom | useEventListener | 优雅的使用 addEventListener | 基础用法:无报错 监听 keydown 事件:无物理键盘 | NO | -| Dom | useEventListener | 优雅的使用 addEventListener | 报错,无物理键盘 | NO | | Dom | useClickAway | 监听目标元素外的点击事件 | Property 'document' doesn't exist Properties“document”不存在 | NO | | Dom | useDocumentVisibility | 监听页面是否可见 | 无报错,无法监听到state状态变化,获取不到手机窗口 | NO | | Dom | useEventTarget | 常见表单控件(通过 e.target.value 获取表单值) 的 onChange 跟 value 逻辑封装,支持自定义值转换和重置功能 | Cannot read property ‘value’of undefined | NO | diff --git a/zh-cn/react-ahooks.md b/zh-cn/react-ahooks.md index fb6021cb..1e1bdfd9 100644 --- a/zh-cn/react-ahooks.md +++ b/zh-cn/react-ahooks.md @@ -185,7 +185,6 @@ export function WhyDidYouUpdate() { | -------- | --------------------- | ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------: | | Dom | useDrop & useDrag | 处理元素拖拽的 Hook | Property 'document' doesn't exist 属性“document”不存在 | NO | | Dom | useEventListener | 优雅的使用 addEventListener | 基础用法:无报错 监听 keydown 事件:无物理键盘 | NO | -| Dom | useEventListener | 优雅的使用 addEventListener | 报错,无物理键盘 | NO | | Dom | useClickAway | 监听目标元素外的点击事件 | Property 'document' doesn't exist 属性“document”不存在 | NO | | Dom | useDocumentVisibility | 监听页面是否可见 | 无报错,无法监听到state状态变化,获取不到手机窗口 | NO | | Dom | useEventTarget | 常见表单控件(通过 e.target.value 获取表单值) 的 onChange 跟 value 逻辑封装,支持自定义值转换和重置功能 | Cannot read property ‘value’of undefined | NO | -- Gitee