mirror of
https://gitee.com/layui/layui.git
synced 2025-11-24 16:43:14 +08:00
feat(dropdown): 新增 close 选项 (#1605)
* feat(dropdown): 新增 close 选项 * update code * update code * update code * style(dropdown): 格式化测试代码 --------- Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
This commit is contained in:
@@ -302,6 +302,20 @@ click: function(data, othis){
|
||||
|
||||
用法详见:[#示例](#examples)
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>close <sup>2.9.7+</sup></td>
|
||||
<td colspan="3">
|
||||
|
||||
面板关闭后的回调函数。返回的参数如下:
|
||||
|
||||
```
|
||||
close: function(elem){
|
||||
console.log(elem); // 当前组件绑定的目标元素对象
|
||||
}
|
||||
```
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user