mirror of https://github.com/layui/layui
新增 `dropdown.close(id)` 方法,用于关闭对应的实例面板
parent
7754061ee2
commit
af3dba31ae
|
@ -532,6 +532,15 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){
|
|||
|
||||
}();
|
||||
|
||||
// 关闭面板
|
||||
dropdown.close = function(id){
|
||||
var that = thisModule.getThis(id);
|
||||
if(!that) return this;
|
||||
|
||||
that.remove();
|
||||
return thisModule.call(that);
|
||||
};
|
||||
|
||||
// 重载实例
|
||||
dropdown.reload = function(id, options){
|
||||
var that = thisModule.getThis(id);
|
||||
|
|
Loading…
Reference in New Issue