This commit is contained in:
sight
2025-09-22 23:33:15 +08:00
parent 076b03d438
commit 9e12ca48c5
2 changed files with 3 additions and 5 deletions

View File

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

View File

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