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:
morning-star
2024-02-27 17:59:21 +08:00
committed by GitHub
parent 289c3b4916
commit 4136f7af12
3 changed files with 267 additions and 187 deletions

View File

@@ -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>