Commit Graph

2514 Commits

Author SHA1 Message Date
贤心
6bf0823d4a Update docs/versions.md 2025-09-27 12:52:16 +08:00
贤心
ee2d07e6b0 Update docs/versions.md 2025-09-27 12:52:08 +08:00
贤心
d7190b4efb Update docs/versions.md 2025-09-27 12:51:53 +08:00
sight
0bd927588e chore: 重命名 lay._createResizeObserverlay.createSharedResizeObserver 2025-09-26 23:29:32 +08:00
贤心
0c3baebdfb release: v2.12.0-alpha.0
Some checks failed
Issue Close Require / issue-close-require (push) Has been cancelled
v2.12.0-alpha.0
2025-09-26 00:24:05 +08:00
morning-star
3f19d30870 feat(dropdown): 支持同时打开多个 (#2827)
* fix(select): select 面板大小变化时重新定位

* update

* feat(dropdown): 支持同时打开多个

* update

* update
2025-09-26 00:09:27 +08:00
morning-star
f18edf97f7 fix(laydate): 预览区域选中高亮跟随主题 (#2840) 2025-09-25 19:12:11 +08:00
morning-star
3940c45654 fix(layer): 修复 iframe 高度较大时,使用 layer.iframeAuto 可能导致 layer 顶部超出浏览器的问题 (#2839)
* fix(layer): 修复 layer.iframeAuto 在某些情况可能会超出浏览器的问题

* update code

* docs(layer): 更新文档示例

* update

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-09-25 19:11:45 +08:00
morning-star
58dccaada4 fix(table): 修复 checkbox/radio 列触发行事件问题 (#2836)
* fix(checkbox): 优化和 label 元素的兼容性问题

* fix: 恢复原始元素上的事件传播

* fix: 修复 checkbox/radio 触发行事件问题

自定义的 checkbox/radio 元素,现在需要添加 lay-unrow 属性取消行事件的触发

* update
2025-09-25 19:10:47 +08:00
morning-star
2388d4c2e1 fix(element-nav): 纵向菜单出现滚动条时,滑块位置异常 (#2826) 2025-09-25 19:08:26 +08:00
morning-star
1ec6c91da6 fix(table): 修复自动行高时固定列高度异常 (#2825)
* fix(select): select 面板大小变化时重新定位

* update

* fix(table): 修复自动行高时固定列高度异常

* feat(table): 新增 syncFixedRowHeight 选项

* update

* update

* update

* update

* update

* fix: 重复 render 时停止 onserveResize

* update

* docs: 更新 table 文档

* fix: 修复一些边缘情况

* fix: 修复边缘情况
2025-09-25 19:08:02 +08:00
morning-star
182c0bcedd fix(select): 面板元素大小变化时重新定位 (#2824)
* fix(select): select 面板大小变化时重新定位

* update

* chore: 将 bind 改为 $.proxy

* update
2025-09-21 23:36:33 +08:00
morning-star
9b66ff7e39 docs(i18n): 更新文档 (#2831)
Some checks failed
Issue Close Require / issue-close-require (push) Has been cancelled
* docs: 更新文档

* update

* docs(i18n): 优化文档细节

* docs(i18n): 微调说明

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-09-15 16:44:39 +08:00
morning-star
21a25629dd refactor(slider): 使用 component 重构 slider (#2781)
* refactor(slider): 使用 component 重构 slider

* docs(slider): 添加 component 通用接口说明

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-09-08 23:04:59 +08:00
morning-star
fd78240b53 feat(code): 新增行高亮功能 (#2763)
* feat(code): 新增行高亮功能

支持行高亮,聚焦,diff,自定义行高亮

* update code

* chore: 优化变量命名

* docs(code): 更新文档

* test(code): 添加行高亮测试用例

* docs(code): 优化 highlightLine 文档

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-09-08 23:04:32 +08:00
morning-star
af6ba6c972 feat(table): 支持自定义 ajax 请求 (#2752) 2025-09-08 11:16:47 +08:00
morning-star
d96ad79960 feat(i18n): 国际化支持 (#2698)
Some checks failed
Issue Close Require / issue-close-require (push) Has been cancelled
* wip(i18n): laydate 国际化

* wip(i18n): colorpicker 国际化

* wip(i18n): laypage 国际化

* fix

* update code

* wip(i18n): 修改国际化消息对象结构

* wip(i18n): update

* wip(i18n): code 国际化

* wip(i18n): dropdown 国际化

* wip(i18n): flow 国际化

* wip(i18n): form 国际化

* wip(i18n): layer 国际化

* wip(i18n): table 国际化

* wip(i18n): transfer 国际化

* wip(i18n): tree 国际化

* wip(i18n): treeTable 控制台提示统一为英文

* wip(i18n): upload 国际化

* wip(i18n): util 国际化

* wip(i18n): update code

* wip(i18n): update code

* wip(i18n): fix

* wip(i18n): 优化 $t 代码细节

* wip(i18n): 修复 laydate lang

* wip(i18n): 改进 upload i18n key

* wip(i18n): 修复打包后 laydate 和 layer 异常

* wip(i18n): 移除国际化消息中的 `lay` 命名空间

* refactor(i18n): 改进国际化支持

* wip(i18n): 修复 table text.none 切换 locale 无效问题

* style(laydate): 优化逗号格式

* chore(laydate): 优化部分提示

* chore(i18n): 优化演示中部分国际化消息

* refactor: 剔除 laydate 单独版的判断逻辑

为接下来全面支持国际化做铺垫

* wip(i18n): 为 laydate 重新添加完整国际化的支持

* i18n(laydate): 优化 lang() 方法中的逻辑

* chore(util): 删除未使用的代码

* chore(i18n): 优化注释

* docs(i18n): 新增国际化文档(beta)

note: 由于时间关系,本次提交仅为初版,该文档尚未完成

* wip(docs): 完善 i18n 文档

* fix(i18n): 修复 laypage 变量定义前使用

* wip(i18n): 转义翻译结果

* fix(i18n): 修复 table 排序 key 无效

* wip(i18n): 优化获取对象中指定路径值的性能

* wip(i18n): 删除 $t 可变长参数重载

* chore(i18n): 删除不必要的注释

* refactor(i18n): laydate 国际化方案迁移至 i18n.$t (#2745)

* wip(i18n): 改进 laydate i18nMsg key

* update code

* wip(i18n): 改进 laydate 面板中的日期格式处理

* wip(i18n): 改进 util.toDateString meridiem

遵循 CLDR day periods 标准

* update code

* wip(docs): 优化 i18n 文档示例

* docs(i18n): 优化正式文档

* docs(i18n): 优化部分文案

* docs(i18n): 优化示例

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-09-08 10:31:02 +08:00
贤心
a0a0ba4a1c release: v2.11.6 v2.11.6 2025-08-29 18:02:51 +08:00
morning-star
bbc4f0467e fix(tabs): 修复获取标签内容项 lay-id 不存在时会返回最后一项的问题 (#2806) 2025-08-29 17:50:09 +08:00
morning-star
813977d8b8 fix(laypage): 移除 laypage 中 input 元素的过渡效果 (#2796) 2025-08-29 17:39:28 +08:00
morning-star
d7b7d43c91 fix(form): 修复 label 和 checkbox/radio 关联时的问题 (#2795)
* fix(form): 修复 label 元素和单/多选框关联时的问题

1.两者通过 for 关联时,点击 lable 元素,label 点击事件触发一次 checkbox 属性值更新,但组件内部是通过美化元素的点击事件更新 checkbox 属性值,所以此时美化元素样式不会更新。
2.两者为包含关系时,点击 label 元素,label 点击事件和美化元素的点击事件分别触发一次 checkbox 属性值更新,导致无法正常工作。

* update

* fix(checkbox): 防止事件重复绑定
2025-08-29 17:38:36 +08:00
morning-star
845d372585 fix(table): 修复设置 even:true 时,行选中背景色异常 (#2776) 2025-08-29 16:46:02 +08:00
贤心
71c6239e55 release: v2.11.5
Some checks failed
Issue Close Require / issue-close-require (push) Has been cancelled
v2.11.5
2025-07-21 23:26:07 +08:00
贤心
38c9ef9e4d docs(versions): 添加 v2.9.27 更新日志 2025-07-21 23:24:39 +08:00
Firework
6666aa20a1 style(css): 部分兼容性优化 (#2761)
* style(css):兼容性调整

* Update src/css/layui.css

* Apply suggestions from code review

* Update src/css/modules/layer.css

Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com>

---------

Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com>
Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-07-21 10:26:09 +08:00
morning-star
5929f4d188 fix(laydate): 修复 range:false, autoConfirm:false 时确认按钮状态同步异常 (#2754) 2025-07-21 10:24:19 +08:00
贤心
77adc3d196 release: v2.11.4
Some checks failed
Issue Close Require / issue-close-require (push) Has been cancelled
v2.11.4
2025-06-22 22:18:22 +08:00
贤心
5a2baf9375 refactor(collapse): 重构折叠面板组件 (#2734) 2025-06-22 22:10:35 +08:00
贤心
ece68e117e release: v2.11.3 v2.11.3 2025-06-18 10:34:19 +08:00
贤心
c7bfc564ea docs(tabs): 新增「打乱标签顺序」示例 2025-06-18 10:29:35 +08:00
贤心
e67266260f feat(collapse): 新增折叠面板展开和收缩时的过渡动画 (#2722) 2025-06-17 15:17:20 +08:00
morning-star
e3f683cdc0 feat(treeTable): expandNode 新增 done 回调 (#2721)
* feat(treeTable): expandNode 新增 done 回调

* docs(treeTable): 更新文档

* update code

* Update docs/treeTable/index.md
2025-06-17 15:10:16 +08:00
贤心
1eb01c6706 fix(tabs): 优化 close 方法在标签顺序打乱时传入 lay-id 的支持 (#2690)
* fix(tabs): 优化 close 方法在标签顺序打乱时传入 lay-id 的支持

* fix(tabs): 优化 closeMult 方法 index 参数值为 lay-id 时的无效问题

* fix(tabs): 优化 `getHeaderItem` 等方法的 `index` 参数的类型检测
2025-06-17 15:09:36 +08:00
贤心
ac8d5ccc30 release: v2.11.2
Some checks failed
Issue Close Require / issue-close-require (push) Has been cancelled
v2.11.2
2025-05-15 11:05:05 +08:00
corededitor
1ea5f34600 feat(tabs): 优化若干功能 (#2680) 2025-05-15 10:42:02 +08:00
morning-star
fe7df50ce7 fix(form-select): 修复 option 两端的 Unicode 空格(U+00A0)被去除的问题 (#2676)
* fix(form-select): 修复 option 两端的 Unicode 空格(U+00A0)被去除的问题

* update

* update

* fix
2025-05-15 10:32:04 +08:00
贤心
1b9557cdd8 feat(tabs): 增强若干功能 2025-05-13 00:19:59 +08:00
贤心
7138198645 fix(tabs): 优化 header 初始值判断,允许数组为空 2025-05-12 16:25:55 +08:00
贤心
a7af177223 release: v2.11.1
Some checks failed
Issue Close Require / issue-close-require (push) Has been cancelled
v2.11.1
2025-05-06 15:43:25 +08:00
贤心
36a5beaa46 fix(form): 修复 select 组件的字符转义问题 (#2661)
* fix(form): 修复 select 组件的字符转义问题

* Update src/modules/form.js

Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com>

---------

Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com>
2025-05-06 15:33:31 +08:00
Session小胡
c1d821d38d perf(css): use transform in carousel (#2654) 2025-05-06 15:32:54 +08:00
morning-star
008e6cb7d0 fix(form-select): 修复 checkbox/radio 在 WebKit/537.36 的异常 (#2637)
* fix(form-select): 修复 `checkbox/radio` 在 WebKit/537.36 的异常

* docs: 优化部分注释文案,避免非技术人员理解错位

尽量避免词汇:监听、侦听。可用事件「触发」或「响应」等相近含义的词语替代

* Revert "docs: 优化部分注释文案,避免非技术人员理解错位"

This reverts commit 8cc9949bdfa36a3ff052bbdd95beea26fd3793ce.

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-05-06 14:51:38 +08:00
贤心
fe5e4e1264 docs: 有些部分文档细节 2025-04-26 23:22:04 +08:00
贤心
4fd021e48b release: v2.11.0
Some checks failed
Issue Close Require / issue-close-require (push) Has been cancelled
v2.11.0
2025-04-21 15:56:23 +08:00
贤心
5e7cbdeb30 release: v2.11.0-rc.5 v2.11.0-rc.5 2025-04-21 00:32:38 +08:00
morning-star
b3bfc92374 fix(layui): 修复 layui.link 重复执行时不触发回调函数的问题 (#2651)
* fix(layui.js): 修复 layui.link 重复执行时回调不触发的问题

这会导致 laydate 无法渲染,行为和 2.9 保持一致

* chore(link): 修改注释错别字

* chore(link): 添加注释

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-04-21 00:22:53 +08:00
贤心
985803ec09 feat(laytpl): 增强 template 报错时的上下文捕获 (#2650)
* fix(laytpl): 优化接口输出顺序,避免 vite 中无法向 layui 输出接口

* feat(laytpl): 增强 template 错误行上下文捕获
2025-04-21 00:21:48 +08:00
贤心
6d524c0674 release: v2.11.0-rc.4 v2.11.0-rc.4 2025-04-18 21:50:07 +08:00
morning-star
23a62619d9 fix(laytpl): 兼容性调整 (#2647)
避免部分组件受全局 laytpl tagStyle 影响
2025-04-18 21:35:30 +08:00
贤心
a7267a4b5d chore(hash): 新增返回 pathname, 与 layui.url 一致 (#2649)
`path` 将在合适的版本移除
2025-04-18 21:04:38 +08:00