Commit Graph

59 Commits (d0dc609cf95a3cba3fd2b5f1736052d4ae0c5e13)

Author SHA1 Message Date
贤心 4262ed82b3
feat(table): 优化 table.checkStatus() 方法 (#2239)
* feat(table): 优化 table.checkStatus() 方法

* docs(table): 补充文档
2024-09-25 00:14:02 +08:00
Jathon-github dc6250f0c3
docs(table-demo): 更新文档 (#2197)
* docs(table-demo): 更新文档

将表头属性 toolbar 替换为等效属性 templet
新版本的表头属性介绍文档中已经移除了关于 toolbar 的介绍

* Update docs/table/examples/demo.md

* Update docs/table/examples/demo.md

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2024-08-30 11:20:15 +08:00
贤心 4545ec151a
refactor(table): 重构 table.setRowChecked() 方法 (#2146)
* refactor(table): 重构 table.setRowChecked() 方法

* feat: 进一步优化 `table.setRowChecked()`
fix: 修复单选时未移除其他行数据选中状态的问题

* refactor: 剔除多余判断

* docs: 优化 checked 选项说明
2024-08-16 21:53:20 +08:00
贤心 12e33cedab
docs: 文档细微优化 (#2094)
* docs: 细微优化

* Update docs/versions.md

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

* docs: 优化 rowContextmenu 事件示例

---------

Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com>
2024-07-15 14:49:10 +08:00
贤心 4c6c133a12
refactor(table): 优化行单双击事件机制,避免与单元格编辑等事件冲突 (#2064)
* chore(table): 优化行事件,新增返回 `event` 对象,可用于阻止事件冒泡

* docs: 更新文档

* refactor: 重新优化不触发行事件的机制
2024-07-09 14:22:49 +08:00
贤心 2769fd3254
refactor(table): 重构 defaultToolbar 选项 (#2019)
* test(table): 新增自定义导出示例

* refactor(table): 重构 `defaultToolbar` 选项,增加 `name,onClick` 成员

* refactor: update

* Update docs/table/detail/options.md
2024-06-18 11:48:41 +08:00
morning-star 2e5ad41aef
feat(form-select): 新增 `lay-append-to` 属性 (#1926)
* feat(form-select): 新增 `lay-append-to` 属性

docs(form-select): 更新文档

fix: 修复定向渲染 BUG

fix: 修复点击元素外部关闭面板时的一些问题

refactor: 重命名部分变量

feat: lay.onClickOutside 新增 capture 选项

feat: lay.onClickOutside 新增 detectIframe 属性

chore: 修改部分变量命名

fix: 窗口大小改变时,面板位置异常

revert: 1fe122b

fix: 修复一些边缘情况

refactor: 将 lay-append-to-body 重命名为 lay-append-to

fix: 重新渲染时,应该移除旧的面板元素

* update code

* docs(form): 新增 `lay-append-position` 属性的文档介绍

* docs: 优化 select 在 table 多样化编辑中的示例

* docs(form-select): 增加 `lay-append-to` 的相关示例

* feat(form-select): 新增 `lay-append-position` 属性,用于设置 `select` 面板开启 `lay-append-to` 属性后的定位方式

* chore(form-select): 剔除多余代码

* docs(form-select): 优化 select 在 layer 中使用的示例
当鼠标滑动 layer 内部滚动条时移除下拉框,以规避错位

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2024-06-17 18:35:03 +08:00
贤心 bec3306dd9 chore: Merge branch 'main' of github.com:layui/layui 2024-06-03 13:42:20 +08:00
morning-star ca56d0b333
feat(table): 支持自定义加载动画 (#1893)
* fix(table): 修复加载数据时 loading 动画丢失的问题

* feat(table): 新增 loadingTemplet 选项

* refactor: loading 选项支持 string 类型

* update code

* test: 更新 table 用例

* docs(table): 新增 loading 选项最新文档说明

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2024-05-20 00:29:30 +08:00
morning-star fe05f5f8ab
docs(table): 优化文档 (#1913) 2024-05-18 11:26:38 +08:00
贤心 5f4a64bbdb docs(table): 更正示例的合计行模板选项名 2024-05-13 17:49:21 +08:00
贤心 21db7ff6a7 docs: 更正 table 示例预览的传参 2024-04-01 15:54:58 +08:00
qzstudio c5f2f5261b
docs(table): 添加缺失的引号 (#1633)
少个符号
2024-02-22 10:57:34 +08:00
morning-star 90000f39f6
feat(table): 新增 `table.updateRow`方法 (#1540)
* feat(table): 新增 `table.updateRow` 方法

* refactor

* update code

* update doc

* feat(table): 新增 `table.updateTotalRow`

* perf(table): 改进 updateRow 渲染性能

* feat(table): col.totalRow 支持函数,改进 updateTotalRow 参数

* feat(table): 新增 table.getTotalRow

* feat(table): table.getTotalRow 支持获取原始结果

* perf(table): 改进 table.updateRow 性能

* fix: 修复 updateRow  一些问题

* revert: 回退除 table.updateRow 以外的所有改动

REVERT:
bc61f9ff08
1a5258b292
4af5b1cda4
62e551d22b
这些方法互相关联,而 totalRow 存在暂时无法解决的问题,故全部回退。后续在其他 PR 中实现。

* refactor(table): updateRow options.row 重命名为 options.data
2024-01-18 13:10:49 +08:00
贤心 780bd490fb docs(table): 更正示例代码 2023-12-18 13:53:38 +08:00
贤心 a00f1fcdd1 完善 `table.setRowChecked()` 文档 2023-12-11 10:12:39 +08:00
sight af230636a6 更新 table height 选项文档,添加函数类型描述 2023-12-01 12:35:40 +08:00
贤心 c2aea60df3 更新 docs 中的引入资源 2023-11-29 12:41:17 +08:00
sight db311e1487 修复部分文档和模块注释中的错别字 2023-11-29 07:45:36 +08:00
morning-star 1353098be6
优化 table 文档 (#1428) 2023-11-21 21:38:34 +08:00
贤心 c692abb707 Merge branch '2.x' of github.com:layui/layui into 2.x 2023-11-19 18:20:33 +08:00
morning-star 97952ecd06
优化 table 文档多样化编辑示例 (#1424) 2023-11-19 18:19:27 +08:00
贤心 4a7ff50de8 优化 table 的 `height` 属性介绍 2023-11-19 17:51:06 +08:00
贤心 d7df37477c 更新 docs 相关静态路径 2023-10-20 19:02:52 +08:00
贤心 173da167ad 优化 table 文档中的示例细节 2023-10-17 19:38:34 +08:00
贤心 771d9e4998 优化 table 文档细节 2023-10-12 09:54:14 +08:00
贤心 bb5cdd0fe5 更新 table 文档的 `complete` 属性说明 2023-10-10 11:29:30 +08:00
贤心 18db12eec8 更新 table 文档若干属性介绍 2023-09-11 11:57:00 +08:00
贤心 27585555a1 更新 table 综合演示细节 2023-09-11 11:55:51 +08:00
贤心 f52f13385e 添加 table 文档预留元素 2023-09-03 12:49:49 +08:00
贤心 5c9a22f88e 更新 table 示例细节 2023-08-28 11:02:50 +08:00
贤心 8a56a32ec8 更新 table 的 expandedWidth 表头属性描述细节 2023-08-16 19:33:11 +08:00
贤心 ff355d681b 更新 table 综合演示细节 2023-08-16 19:32:38 +08:00
贤心 723f2779a9 新增 table 综合演示中的 `expandedWidth` 属性 2023-08-15 19:53:54 +08:00
贤心 d598c8de84 优化 table 示例细节 2023-08-15 11:25:56 +08:00
贤心 b7e507d054 优化 table 中 `totalRow` 表头属性介绍 2023-08-05 10:34:06 +08:00
贤心 3c6c24e958 微调 table 示例细节 2023-06-21 11:09:41 +08:00
贤心 692e245d62 修正 table 的 `colTool` 示例代码注释说明 2023-06-21 11:09:01 +08:00
贤心 b4dcefbceb 更新 table 文档 2023-06-20 00:06:18 +08:00
贤心 57ff9a7db9 更新 table 综合演示中的表头相关事件示例 2023-06-20 00:05:59 +08:00
贤心 9b60f9fa50 更新 table 文档细节 2023-06-16 10:05:39 +08:00
贤心 9a123ef69f 更新 table 文档 2023-06-16 09:46:36 +08:00
贤心 1b8a033557 丰富 table 文档关于 `renderData` 方法的介绍 2023-06-08 12:18:55 +08:00
贤心 79d90fae43 完善 `table.set()` 文档介绍 2023-05-31 22:08:17 +08:00
贤心 1163484e03 更新 table 文档 2023-05-30 09:56:11 +08:00
贤心 d64c830aa8 完善 table 的 `data` 属性介绍 2023-05-16 17:18:50 +08:00
贤心 19f5d7ca4d 更新 table 文档 2023-05-15 11:33:12 +08:00
贤心 d5bb8cf413 修改 docs 示例中的静态模拟数据的路径 2023-05-10 12:56:43 +08:00
贤心 913ef6785d 优化 table 多样化编辑的示例 2023-05-10 12:16:13 +08:00
贤心 89772f47da 优化 docs 子文档的引用路径 2023-05-10 12:14:45 +08:00