fantasy-ngzorro 2.2.13 → 2.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -32,6 +32,7 @@
32
32
 
33
33
  | 更新人 | 更新时间 | 更新内容 |
34
34
  | ------ | -------- | -------- |
35
+ | — | 2026-10-8 | `hd-table`:底部合计行走 `nzFooter`(分页之上、不进虚拟滚动);`tableTotalOption` 共用 `TotalOption`;列未撑满与横滚两套对齐;序号列固定宽(2.2.14) |
35
36
  | — | 2026-10-3 | `hd-form-lines`:`enableKeyboardOperate=false` 时 Select 选中后不再自动聚焦下一个控件(2.2.13) |
36
37
  | — | 2026-10-3 | `hd-table`:横向滚动时表头/表体 table 改为 `table-layout: fixed`,修复表体单元格内容超宽把列撑开导致表头表体列线错位(2.2.12) |
37
38
  | — | 2026-10-3 | `hd-filter`:筛选组进页只请求一次(跳过 ngOnChanges firstChange,避免与 ngOnInit 重复导致首次请求被取消)(2.2.11) |
@@ -433,8 +434,9 @@ tableCols: HdTableColumn[] = [{
433
434
  | showOperateColWarpButton | boolean | false | 展开/缩略显示换行列 |
434
435
  | virtualScroll | boolean | true | 行数多自动虚拟滚动;横向滚动条按**列总宽是否超出容器**决定 |
435
436
  | virtualItemSize | number | — | 虚拟滚动行高(px);**不传则首屏自动测量** |
436
- | showTableTotal | boolean | false | 底部合计行 |
437
- | tableTotalOption | HdTableTotalOption[] | — | 合计配置 |
437
+ | showTableTotal | boolean | false | 底部合计行(`nzFooter`,固定在表体下方、分页上方,不进虚拟滚动数据);开启后表内**强制展示序号列**,「合计」对齐序号列 |
438
+ | tableTotalOption | TotalOption[] | — | 合计配置,与 `hd-detail-lines` 共用 [TotalOption](#totaloption明细合计行);未传 `insertValue` 时按 `insertIndex` 对应列对 content 求和 |
439
+ | columnsNumber | number \| string | — | 合计列总数(**含序号列**,与 detail-lines 一致);不传则按可见数据列数 + 1 |
438
440
  | isFirstEntrySearch | boolean | — | 首次进入是否自动查询 |
439
441
  | isCrossPageSelect | boolean | — | 跨页勾选 |
440
442
  | uuid | string | — | 列缓存唯一标识(必填,用于 IndexedDB 缓存) |
@@ -461,7 +463,7 @@ linesPage = { content: lines, totalElements: lines.length };
461
463
 
462
464
  #### HdTableColumn 配置
463
465
 
464
- 列定义见 [HdTableColumn](#hdtablecolumn表格列)、[OperateBtn](#operatebtn操作列按钮)、[HdTableTotalOption](#hdtabletotaloptionhd-table-底部合计)。
466
+ 列定义见 [HdTableColumn](#hdtablecolumn表格列)、[OperateBtn](#operatebtn操作列按钮)、[TotalOption](#totaloption明细合计行)。
465
467
 
466
468
  当 `name` 为 `state` 或 `isState` 为 `true` 时,列内容使用 `hd-status` 渲染。取值规则:`isState` 时取 `data[name]`;否则可通过 `stateField` 指定字段,未配置时默认取 `state`。
467
469
 
@@ -1240,22 +1242,16 @@ onTableCellChange(e: HdTableCellChange) {
1240
1242
  | click | (line) => void | — | 点击回调 |
1241
1243
  | permission | (line) => boolean | — | 是否显示 |
1242
1244
 
1243
- #### HdTableTotalOption(hd-table 底部合计)
1244
-
1245
- | 参数 | 类型 | 说明 |
1246
- | ---- | ---- | ---- |
1247
- | columnNumber | number | 总列数 |
1248
- | insertIndex | number | 插入列下标 |
1249
- | insertName | string | 合计字段名 |
1245
+ #### TotalOption(明细合计行 / hd-table 底部合计)
1250
1246
 
1251
- #### TotalOption(明细合计行)
1247
+ 用于 `hd-detail-lines`、`hd-detail-lines-page`、`hd-form-lines`、`hd-table`(`tableTotalOption`)。
1252
1248
 
1253
- 用于 `hd-detail-lines`、`hd-detail-lines-page`、`hd-form-lines`。
1249
+ `hd-table` 开启 `showTableTotal` 后左侧固定增加「序号」列;合计通过 `nzFooter` 固定在表体下方、分页上方。「合计」对齐序号列;`insertIndex` 从 1 起对应可见数据列。未传 `insertValue` 时按该列 `name` 对当前 `content` 数值求和。
1254
1250
 
1255
1251
  | 参数 | 类型 | 说明 |
1256
1252
  | ---- | ---- | ---- |
1257
1253
  | insertIndex | number | 插入列下标(从 1 开始) |
1258
- | insertValue | any | 合计值 |
1254
+ | insertValue | any | 合计值;`hd-table` 可不传,按列自动求和 |
1259
1255
  | align | string | 对齐方式 |
1260
1256
  | showDecimal | boolean | 始终显示小数 |
1261
1257
  | preserveNumber | number | 保留小数位数,不传默认 2 |