arthub-table 0.2.28 → 0.2.29-next.0

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.
@@ -36,7 +36,12 @@ declare class Footer {
36
36
  * 布局从右到左:[下拉箭头(ARROW_ICON_SIZE)] [刷新icon(REFRESH_ICON_PADDING + REFRESH_ICON_SIZE + REFRESH_ICON_PADDING)]
37
37
  */
38
38
  private isInsideRefreshIcon;
39
- /** 从列配置中查找指定索引的列 */
39
+ /**
40
+ * 从列配置中查找指定 key 的列。
41
+ * 注意:必须按 key 匹配,不能按 index — grid.headers 由 calCrossSpan 生成的复合表头树形结构,
42
+ * 元素本身并无 index 字段(HeaderConfig 仅有 level/rowspan/colspan/children),
43
+ * 而 ColumnHeader 的 index 是叶子列序号,与 headers 树形结构无对应关系。
44
+ */
40
45
  private findColumnConfig;
41
46
  /** 绘制 footer */
42
47
  draw(): void;
@@ -309,7 +309,10 @@ declare class GroupRow extends Context {
309
309
  */
310
310
  private isInsideNestedRefreshIcon;
311
311
  /**
312
- * 从列配置中查找指定索引的列
312
+ * 从列配置中查找指定 key 的列。
313
+ * 注意:必须按 key 匹配,不能按 index — grid.headers 由 calCrossSpan 生成的复合表头树形结构,
314
+ * 元素本身并无 index 字段(HeaderConfig 仅有 level/rowspan/colspan/children),
315
+ * 而 ColumnHeader 的 index 是叶子列序号,与 headers 树形结构无对应关系。
313
316
  */
314
317
  private findColumnConfig;
315
318
  dbClick(_x: number, _y: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.28",
3
+ "version": "0.2.29-next.0",
4
4
  "description": "High-performance canvas-based table/grid component for Vue 3 with TypeScript support, featuring virtual scrolling, cell viewers, grouped rows, and nested grids.",
5
5
  "main": "dist/arthub-table.common.js",
6
6
  "module": "dist/arthub-table.umd.min.js",