mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
优化 checkbox 复选框事件文档
This commit is contained in:
parent
fcc30e1b24
commit
e2ca4a965f
@ -109,9 +109,12 @@ toc: true
|
||||
|
||||
<h2 id="on" lay-toc="{hot: true}">复选框事件</h2>
|
||||
|
||||
`form.on('checkbox(filter)', callback);`
|
||||
| 风格 | 事件 |
|
||||
| --- | --- |
|
||||
| 默认风格 / 标签风格 | `form.on('checkbox(filter)', callback);` |
|
||||
| 开关风格 | `form.on('switch(filter)', callback);` |
|
||||
|
||||
- `checkbox` 为复选框事件固定名称
|
||||
- `checkbox` 和 `switch` 为复选框事件固定名称
|
||||
- `filter` 为复选框元素对应的 `lay-filter` 属性值
|
||||
|
||||
该事件在复选框选中或取消选中时触发。
|
||||
|
Loading…
Reference in New Issue
Block a user