Commit Graph

2502 Commits (e731de490ca6375eef7309cb3ef6bf1452dcf0e1)

Author SHA1 Message Date
sight e731de490c feat(dropdown): 支持同时打开多个 2025-09-08 15:08:30 +08:00
sight 3c64d33e6e update 2025-09-08 14:51:59 +08:00
sight 99d5974092 fix(select): select 面板大小变化时重新定位 2025-09-08 14:51:58 +08:00
morning-star af6ba6c972
feat(table): 支持自定义 ajax 请求 (#2752) 2025-09-08 11:16:47 +08:00
morning-star d96ad79960
feat(i18n): 国际化支持 (#2698)
* 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 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 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 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 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 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 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 8cc9949bdf.

---------

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 2025-04-21 15:56:23 +08:00
贤心 5e7cbdeb30 release: 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 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
贤心 3617209874
fix(component): 优化 render, events 执行的条件 (#2643) 2025-04-17 23:16:17 +08:00
贤心 1f2fc91431
style(css): 清理 IE 低版本 css hack (#2642) 2025-04-17 23:16:02 +08:00
morning-star 6fc761e63b
chore(laytpl): 兼容性调整 (#2638) 2025-04-17 23:12:06 +08:00
morning-star a1e084c6b4
feat(form-select): select 点击外部关闭支持检测 iframe (#2631)
* feat(lay): lay.onClickoutside 新增 detectIframe 选项

* feat(form-select): select 支持检测 iframe 点击

* feat(lay): lay.touchSwipe 新增 preventDefault 选项

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

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

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-04-17 23:11:41 +08:00
morning-star 3842a98360
feat(dropdown): onClickoutside 检测 iframe 区域 (#2629) 2025-04-17 23:08:57 +08:00
贤心 a060a484e4 release: v2.11.0-rc.3 2025-04-15 14:59:09 +08:00
贤心 d2e01d0491 docs(versions): 添加 v2.9.26 更新日志 2025-04-15 13:46:01 +08:00
贤心 78438c3429
fix: 优化 escape 和 unescape 在解析某些特殊字符串时的潜在问题 (#2628)
* fix: 修复 escape 未转义 unicode 中 & 字符的问题

* chore: update

* fix: 优化 unescape 替换顺序,确保为 escape 替换的反向顺序

* chore: update
2025-04-15 13:23:32 +08:00
贤心 fff6597e10 release: v2.11.0-rc.2 2025-04-14 00:26:24 +08:00
贤心 885a1aa0cf
refactor: 重构 rate 组件,由 component 模块构建 (#2626) 2025-04-14 00:21:29 +08:00
贤心 82a1c8f697
refactor(component): 剔除 isRenderOnEvent, isRenderWithoutElem 选项 (#2625) 2025-04-14 00:08:02 +08:00
贤心 394b313fcc
fix(laypage): 优化快速点击时文本被选中的问题 (#2623) 2025-04-13 23:47:56 +08:00