From e2ca4a965fa71f909adc0f56a02a5487b655eaaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 25 May 2023 00:39:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20checkbox=20=E5=A4=8D?= =?UTF-8?q?=E9=80=89=E6=A1=86=E4=BA=8B=E4=BB=B6=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/form/checkbox.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/form/checkbox.md b/docs/form/checkbox.md index 36cde462..7946487c 100644 --- a/docs/form/checkbox.md +++ b/docs/form/checkbox.md @@ -109,9 +109,12 @@ toc: true

复选框事件

-`form.on('checkbox(filter)', callback);` +| 风格 | 事件 | +| --- | --- | +| 默认风格 / 标签风格 | `form.on('checkbox(filter)', callback);` | +| 开关风格 | `form.on('switch(filter)', callback);` | -- `checkbox` 为复选框事件固定名称 +- `checkbox` 和 `switch` 为复选框事件固定名称 - `filter` 为复选框元素对应的 `lay-filter` 属性值 该事件在复选框选中或取消选中时触发。