Commit Graph

30 Commits

Author SHA1 Message Date
sunxiaobin89
5ab142153b ci: 添加 lint 和 format 工具,统一代码格式 (#2905)
* style: 统一代码格式,修复ESLint错误

- 为所有模块添加尾随逗号
- 修复缺少分号的语句
- 统一对象字面量格式
- 添加ESLint配置文件和文档
- 更新package.json中的脚本和依赖项

* build: 添加 ESLint 配置文件以支持 IE9+ 兼容性

* refactor(upload): 使用已缓存的hint实例替换直接调用

优化代码性能,避免重复实例化hint对象,直接使用模块顶部已缓存的实例

* chore: 更新.gitignore文件以包含更多忽略规则

添加了更多常见的临时文件、编辑器文件、构建输出目录和运行时数据的忽略规则,使项目更加整洁并避免不必要的文件被提交到版本控制中

* fix(lay.js): 修复passive事件监听器选项的返回值

确保getter函数返回true以正确支持passive事件监听

* refactor(form): 移除表单模块中的冗余代码

删除表单模块中无实际作用的冗余代码行,这些代码只是将属性重新赋值为自身,没有实际功能意义

* fix(form): 修复复选框状态处理逻辑

确保复选框的 indeterminate 和 checked 状态被正确转换为布尔值,并优化事件调用时的空格格式

* feat(eslint): 完善 ESLint 配置并添加 VSCode 支持

添加 VSCode 配置文件以支持 ESLint 自动修复和格式化
更新 ESLint 配置,增强代码风格和兼容性规则
修复 package.json 中的脚本拼写错误并添加 format 脚本
调整 .gitignore 以允许特定 VSCode 配置文件

* style: 统一代码中的引号格式并修复缩进问题

统一将双引号改为单引号,修复部分代码缩进不一致的问题,提升代码风格一致性

* docs: 删除过时的ESLint配置文档文件

* build: 采用 prettier 作为代码格式化工具,剔除 ESLint 格式化部分

* chore: 剔除 .vscode/ 配置,保持编辑器中立

* build: 修改 ESLint 为「扁平化配置」方式,避免大量参数堆砌

* chore: 格式化代码

* ci: 添加 git hooks 和 CI 环节把关代码风格

* ci: update

* ci: update

* test: 测试 ci format

* ci: 改用 husky 作为 git hooks,与 Layui 3 保持一致

经测试,simple-git-hooks 生成的 pre-commit 默认为 sh,在 Windows 不兼容(必须用 git bash 执行 commits)

* build: 新增 CI 和生产环境跳过 husky 安装的判断

* build: 剔除重复配置

* build: 优化 eslint 配置

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-11-10 16:03:37 +08:00
贤心
ae2bdd999b chore: 简单分支同步 (#1523)
* ci(issue): 增加 duplicate 标签的定时关闭任务

* docs(issue): 优化 discussion 标签文案

* ci: 优化 issue 被创建和被编辑时的 action 校验逻辑

* refactor(issue-opened): 简化语句

* docs(issue): 优化 bot 回复文案

* Squashed commit of the following:

commit e5aa6c3a87
Author: morning-star <1453017105@qq.com>
Date:   Tue Dec 26 22:32:10 2023 +0800

    feat(transfer): 新增 `dblclick` 选项 (#1491)

    * feat(transfer): 新增 `dblclick` 选项

    * style(transfer): 优化代码书写风格

    ---------

    Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>

commit ed3bab52e5
Author: morning-star <1453017105@qq.com>
Date:   Mon Dec 25 14:53:55 2023 +0800

    chore(select): 优化搜索面板打开逻辑 (#1498)

commit 5db18c6f00
Author: 贤心 <3277200+sentsim@users.noreply.github.com>
Date:   Mon Dec 25 14:52:52 2023 +0800

    docs: 优化 issue 模板提示文案 (#1500)

commit 567a1e70c1
Author: morning-star <1453017105@qq.com>
Date:   Mon Dec 25 13:22:50 2023 +0800

    feat(upload): 加强 data 选项的函数写法,支持获取文件相关数据 (#1494)

    close https://gitee.com/layui/layui/issues/I8JAC1

commit 6abb1eedd8
Author: 贤心 <3277200+sentsim@users.noreply.github.com>
Date:   Mon Dec 25 12:15:51 2023 +0800

    ci: 优化 issue 被创建和被编辑时的 action 校验逻辑 (#1496)

    * ci(issue): 增加 duplicate 标签的定时关闭任务

    * docs(issue): 优化 discussion 标签文案

    * ci: 优化 issue 被创建和被编辑时的 action 校验逻辑

    * refactor(issue-opened): 简化语句

* chore: 更新 version

* style(laydate): 格式化示例代码
2023-12-31 23:51:27 +08:00
贤心
b31b364c16 更新 laydate 用例 2023-09-14 11:53:00 +08:00
贤心
f15fd618f8 更新 laydate 用例 2023-09-11 09:53:48 +08:00
贤心
0d46fef8f0 更新 laydate 示例 2023-02-16 09:22:55 +08:00
贤心
a7017c3daf 更新 laydate 快捷选择面板示例 2022-12-07 18:18:00 +08:00
贤心
0e50a4509b 更新 laydate 示例 2022-12-07 13:24:26 +08:00
meihangbo
506083ebf9 laydate 添加 shade 2022-10-13 20:17:50 +08:00
贤心
2444f92895 更新 laydate 示例 2022-09-05 00:40:22 +08:00
贤心
397cf80f7c update 2022-07-18 00:01:27 +08:00
贤心
dd8e365bdb update 2022-07-06 00:32:53 +08:00
meihangbo
e36430729f 日期控件添加中国法定节假日及补班标注 2022-07-04 09:31:12 +08:00
贤心
95359a3565 update 2022-06-05 23:55:31 +08:00
贤心
abb387250c update 2022-05-27 07:28:25 +08:00
贤心
a061579f29 update 2022-05-22 08:17:44 +08:00
贤心
902aea37d9 update 2022-05-18 22:35:13 +08:00
贤心
7376bbe00d update 2021-05-31 08:57:00 +08:00
贤心
fc09eef635 chore: update 2021-05-18 02:42:31 +08:00
贤心
aeebdc4223 update 2021-05-08 06:31:19 +08:00
贤心
b0646a2f11 update 2021-04-05 23:41:30 +08:00
贤心
2705982246 update 2021-04-01 03:21:16 +08:00
贤心
716bccb3e8 update 2021-03-31 14:07:23 +08:00
star
f8a4d589fb merge 2.3 2018-05-05 17:24:21 +08:00
star
f23eb3752f update 2018-05-05 16:59:53 +08:00
sentsin
5a9b861989 2.1.3 2017-09-13 16:06:55 +08:00
sentsin
48114b00f4 2.1.2 2017-09-03 08:25:54 +08:00
sentsin
102a7497bc test 2017-09-02 17:46:41 +08:00
sentsin
b644b76ce3 2.1.1 2017-09-01 07:52:28 +08:00
xuexb
e644317078 解决冲突 2017-08-31 23:09:32 +08:00
xuexb
f28819e903 把预览例子迁移到 examples 目录 2017-08-23 12:29:22 +08:00