From 13aaedec987590ee0bc3ef4757e951beb404a008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 14 Oct 2024 23:51:44 +0800 Subject: [PATCH] =?UTF-8?q?docs(dropdown):=20=E4=BC=98=E5=8C=96=20onClickO?= =?UTF-8?q?utside=20=E5=9B=9E=E8=B0=83=E7=9A=84=E6=96=87=E6=A1=A3=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/dropdown/detail/options.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/dropdown/detail/options.md b/docs/dropdown/detail/options.md index c8363ca4..2e1977ec 100644 --- a/docs/dropdown/detail/options.md +++ b/docs/dropdown/detail/options.md @@ -341,7 +341,9 @@ close: function(elem){ ``` onClickOutside: function(event){ - - event: 当前点击的 `event` 对象 + // 参数 event 即为当前点击的事件对象 + // … + // return false; // 若返回 false,当点击面板外部时可阻止关闭 } ```