From f4182b4b2a84e609ba85e6d42dd09886c1006a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Mon, 25 Oct 2021 00:37:08 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9E=20hooks=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/zh-CN/hooks/useClickOutside.md | 10 ++++------ docs/src/router/zh-CN.ts | 5 +++-- docs/src/view/hooks.vue | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/docs/zh-CN/hooks/useClickOutside.md b/docs/docs/zh-CN/hooks/useClickOutside.md index 12757fae..6fdfbf71 100644 --- a/docs/docs/zh-CN/hooks/useClickOutside.md +++ b/docs/docs/zh-CN/hooks/useClickOutside.md @@ -2,14 +2,12 @@ ::: ```html -
+
``` ```javascript -const dropdownRef = ref(null) +const dropdownRef = (ref < null) | (HTMLElement > null) const isClickOutside = useClickOutside(dropdownRef) -watch(isClickOutside, () => { - -}) -``` \ No newline at end of file +watch(isClickOutside, () => {}) +``` diff --git a/docs/src/router/zh-CN.ts b/docs/src/router/zh-CN.ts index 54a85d05..221accab 100644 --- a/docs/src/router/zh-CN.ts +++ b/docs/src/router/zh-CN.ts @@ -266,8 +266,9 @@ const zhCN = [ component: () => import('../../docs/zh-CN/hooks/useClickOutside.md'), meta: { title: 'useClickOutside' }, - } - ]} + }, + ], + }, ], }, ] diff --git a/docs/src/view/hooks.vue b/docs/src/view/hooks.vue index 72d33148..218e48b1 100644 --- a/docs/src/view/hooks.vue +++ b/docs/src/view/hooks.vue @@ -73,7 +73,7 @@ export default { title: 'useClickOutside', subTitle: '', path: '/zh-CN/hooks/useClickOutside', - } + }, ], }, ]