release v2.8.18-rc.5

release v2.8.18-rc.5
pull/1440/head v2.8.18-rc.5
贤心 2023-10-31 22:19:30 +08:00 committed by GitHub
commit a70434e96e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 7 deletions

2
dist/layui.js vendored

File diff suppressed because one or more lines are too long

2
dist/layui.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@ toc: true
<h2 id="2.8.18" class="ws-anchor">
2.8.18-rc.4
2.8.18-rc.5
<span class="layui-badge-rim">2023-10-31</span>
</h2>
@ -32,6 +32,7 @@ toc: true
- 新增 `complete` 属性,当数据接口请求完成后执行,无论成功还是失败均会触发 # 1379
- 修复 `ignoreExport` 表头属性值效果与文档不符的问题 # I86DBY
- 修复 `type: 'radio'` 且为右侧固定列时,选择效果无效的问题 # 1406
- 优化 鼠标在固定列滚轮时无法触发滚动条的问题 # I8CGZH
- 优化 某些情况在 Firefox 的报错问题
- #### treeTable
- 修复 `treeTable.removeNode()` 在开启 `data` 模式时删除异常问题 # I7Z0AB/I82E2S
@ -64,7 +65,7 @@ toc: true
- 新增 lay 模块部分函数 JSDoc 注释和示例 #1401
- 优化 `<hr>` 全局样式优先级 # I86R6G
### 下载: [layui-v2.8.18.rc.4.zip](https://gitee.com/layui/layui/attach_files/1569887/download)
### 下载: [layui-v2.8.18.rc.5.zip](https://gitee.com/layui/layui/attach_files/1570260/download)
---

View File

@ -1,6 +1,6 @@
{
"name": "layui",
"version": "2.8.18-rc.4",
"version": "2.8.18-rc.5",
"description": "Classic modular Front-End UI library",
"main": "dist/layui.js",
"license": "MIT",

View File

@ -16,7 +16,7 @@
};
var Layui = function(){
this.v = '2.8.18-rc.4'; // Layui 版本号
this.v = '2.8.18-rc.5'; // Layui 版本号
};
// 识别预先可能定义的指定全局对象

View File

@ -1590,7 +1590,7 @@ layer.photos = function(options, loop, key){
});
// 鼠标滚轮缩放图片事件
dict.main.children('img').on('mousewheel DOMMouseScroll', function(e) {
dict.main.on('mousewheel DOMMouseScroll', function(e) {
var delta = e.originalEvent.wheelDelta || -e.originalEvent.detail;
var zoomElem = dict.main.find('[toolbar-event="zoom"]');
if (delta > 0) {

View File

@ -2604,6 +2604,15 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
layer.close(that.tipsIndex);
});
// 固定列滚轮事件 - 临时兼容方案
that.layFixed.find(ELEM_BODY).on('mousewheel DOMMouseScroll', function(e) {
var delta = e.originalEvent.wheelDelta || -e.originalEvent.detail;
var scrollTop = that.layMain.scrollTop();
var step = 30;
that.layMain.scrollTop(scrollTop + (delta > 0 ? -step : step));
});
};
// 全局事件