mirror of
https://gitee.com/layui/layui.git
synced 2025-10-07 15:14:31 +08:00
update
This commit is contained in:
@@ -486,7 +486,6 @@ layui.define(['i18n', 'jquery', 'laytpl', 'lay', 'util'], function(exports) {
|
||||
|
||||
/**
|
||||
* 点击面板外部时的事件
|
||||
* @returns {() => void} 返回一个函数,用于取消事件
|
||||
*/
|
||||
Class.prototype.onClickOutside = function () {
|
||||
var that = this;
|
||||
@@ -523,7 +522,6 @@ layui.define(['i18n', 'jquery', 'laytpl', 'lay', 'util'], function(exports) {
|
||||
|
||||
/**
|
||||
* 窗口大小变化时自动更新位置
|
||||
* @returns {() => void} 返回一个函数,用于取消事件
|
||||
*/
|
||||
Class.prototype.autoUpdatePosition = function(){
|
||||
var that = this;
|
||||
|
@@ -872,7 +872,7 @@
|
||||
*/
|
||||
lay._createResizeObserver = function (namespace) {
|
||||
if (typeof window.ResizeObserver === 'undefined') {
|
||||
console.log && console.log('ResizeObserver is not supported in this browser');
|
||||
window.console && console.log('ResizeObserver is not supported in this browser');
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -895,7 +895,7 @@
|
||||
return Object.freeze({
|
||||
observe: function (element, callback) {
|
||||
if (!element || !(element instanceof Element)) {
|
||||
console.log && console.log('createResizeObserver: Cannot observe non-Element.');
|
||||
window.console && console.log('createResizeObserver: Cannot observe non-Element.');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -911,7 +911,7 @@
|
||||
},
|
||||
unobserve: function (element) {
|
||||
if (!element || !(element instanceof Element)) {
|
||||
console.log && console.log('createResizeObserver: Cannot unobserve non-Element.');
|
||||
window.console && console.log('createResizeObserver: Cannot unobserve non-Element.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user