mirror of https://github.com/layui/layui
修复 dropdown 设置 `show: true` 时,`ready` 回调未执行的问题
parent
0bb33f66fd
commit
7b058aeecb
|
@ -301,6 +301,11 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 组件打开完毕的事件
|
||||||
|
typeof options.ready === 'function' && options.ready(
|
||||||
|
that.elemView,
|
||||||
|
options.elem
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
//位置定位
|
//位置定位
|
||||||
|
@ -361,9 +366,6 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){
|
||||||
that.e = e;
|
that.e = e;
|
||||||
that.render();
|
that.render();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
//组件打开完毕的时间
|
|
||||||
typeof options.ready === 'function' && options.ready(that.elemView, options.elem, that.e.target);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//触发元素事件
|
//触发元素事件
|
||||||
|
|
Loading…
Reference in New Issue