|
|
|
@ -18,24 +18,68 @@ toc: true
|
|
|
|
|
`2.9.x` 对 `2.8.18` 向下兼容,可覆盖升级。 |
|
|
|
|
|
|
|
|
|
- #### table |
|
|
|
|
- 修复 `complete` 属性导致 `$.ajaxSetup()` 的 `complete` 失效的问题 #1423 |
|
|
|
|
- 修复 `complete` 属性导致 `$.ajaxSetup()` 的 `complete` 失效的问题 #1423 @Sight-wcg |
|
|
|
|
- 修复 单元格展开再收缩后,当列通过拖拽改变过宽度,列存在概率性错位的问题 [28347fc] |
|
|
|
|
- 修复 合计行单元格展开异常的问题 #gitee-I8FH3K |
|
|
|
|
- 优化 `height` 属性高度铺满语法中不支持浮点型数值的问题 #gitee-I8DSPH |
|
|
|
|
- 修复 合计行单元格展开异常的问题 #Gitee-I8FH3K |
|
|
|
|
- 优化 `height` 属性高度铺满语法中不支持浮点型数值的问题 #Gitee-I8DSPH |
|
|
|
|
- 优化 关闭单元格多行展开状态后,悬停状态样式未移除的问题 #1425 @Sight-wcg |
|
|
|
|
- 优化 在末行展开单元格后,出现的固定列水平未对其的问题 [85add62] |
|
|
|
|
- 优化 当数据值为 `0,undefined,null` 且开启列模板,编辑单元格会带入模板字符的问题 [1d408f0] |
|
|
|
|
- #### util |
|
|
|
|
- 优化 `util.on()` 方法,提升参数的灵活性和代码的可读性 [d74abb4] |
|
|
|
|
- 优化 `util.on()` 方法,提升参数的灵活性和代码的可读性 [d74abb4] [92c8580] |
|
|
|
|
- #### layer |
|
|
|
|
- 优化 `layer.closeLast()` 方法,给第二个参数增加回调 [ab4ded2] |
|
|
|
|
- 优化 `layer.closeLast()` 方法,给第二个参数增加回调函数 [ab4ded2] |
|
|
|
|
- #### colorpicker |
|
|
|
|
- 优化 colorpicker 内部输入框取值,移除字符串两侧的空白字符 #1427 @Sight-wcg |
|
|
|
|
- 优化 内部输入框取值,移除字符串两侧的空白字符 #1427 @Sight-wcg |
|
|
|
|
- #### 其他 |
|
|
|
|
- 优化 `lay.clipboard.writeText()` 逻辑,以适配无写入权限时的场景 #1421 @Sight-wcg |
|
|
|
|
|
|
|
|
|
### 下载: [layui-v2.9.0-rc.2.zip](https://gitee.com/layui/layui/attach_files/1595924/download) |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
(function(){ |
|
|
|
|
// 解析更新日志关联链接 |
|
|
|
|
var elem = document.querySelectorAll('#WS-text li'); |
|
|
|
|
elem.forEach(function (item) { |
|
|
|
|
item.childNodes.forEach(function (node) { |
|
|
|
|
if (node.nodeType === 3) { |
|
|
|
|
var nodeValue = node.nodeValue; |
|
|
|
|
var types = [ |
|
|
|
|
{ |
|
|
|
|
rule: /(#)Gitee-(\S+)/g, |
|
|
|
|
href: 'https://gitee.com/layui/layui/issues/' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
rule: /(#)(\d+)/g, |
|
|
|
|
href: 'https://github.com/layui/layui/pull/' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
rule: /\[()([\d\w]+)\]/g, |
|
|
|
|
href: 'https://github.com/layui/layui/commit/' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
rule: /(@)(\S+)/g, |
|
|
|
|
href: 'https://github.com/' |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
var i = 0; |
|
|
|
|
var sNode = document.createElement('span'); |
|
|
|
|
for (; i < types.length; i++) { |
|
|
|
|
if (types[i].rule.test(nodeValue)) { |
|
|
|
|
nodeValue = nodeValue.replace(types[i].rule, function(s, s1, s2) { |
|
|
|
|
return '<a href="'+ types[i].href + s2 +'" target="_blank">'+ s1 + s2 +'</a>'; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
sNode.innerHTML = nodeValue; |
|
|
|
|
node.parentNode.insertBefore(sNode, node); |
|
|
|
|
node.parentNode.removeChild(node); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
})(); |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
|
<h2 id="2.8.x" lay-toc="{title: '2.8.x'}"></h2> |
|
|
|
|