arthub-table 0.2.26-next.0 → 0.2.26

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.
@@ -143,6 +143,8 @@ interface RowContextMenuInfo {
143
143
  _isRowChecked?: boolean;
144
144
  /** 当前选中行总数 */
145
145
  _selectedRowCount?: number;
146
+ /** Row 对象内部的 _rowId,和 selectedRowIds 中的 key 格式一致 */
147
+ _internalRowId?: string;
146
148
  }
147
149
  export interface DataGridOptions {
148
150
  width?: number | string;
@@ -840,7 +842,6 @@ declare class DataGrid {
840
842
  rowIdMap: Map<string, number>;
841
843
  selectedRowIds: Set<string>;
842
844
  selectedGroupIds: Set<string>;
843
- _groupSelectedRowIds: Map<string, string[]>;
844
845
  lastSelectedRowIndex: number;
845
846
  /** Footer 行高度(showFooter 为 false 时返回 0) */
846
847
  get footerHeight(): number;
@@ -1662,7 +1663,7 @@ declare class DataGrid {
1662
1663
  isRowCheckedByIndex(rowIndex: number): boolean | undefined;
1663
1664
  /**
1664
1665
  * 获取全量数据(非受控模式下包含折叠隐藏的行)
1665
- * 用于 GroupRow.selectGroupRows 遍历所有子行(包括折叠不可见的)
1666
+ * 用于需要遍历所有行(包括折叠不可见的)的场景
1666
1667
  */
1667
1668
  getFullData(): RowData[];
1668
1669
  getChangedRows(): RowData[];
@@ -2444,12 +2445,6 @@ declare class DataGrid {
2444
2445
  */
2445
2446
  private ensureRowIds;
2446
2447
  syncGroupCheckedState(): void;
2447
- /**
2448
- * 受控模式下:计算组头应有的 checked 状态,如果与当前不一致则通过回调通知外部修改。
2449
- * 逻辑与 syncGroupCheckedState 的计算一致,但不直接修改 data.checked 和 selectedGroupIds,
2450
- * 而是通过 onGroupCheckboxChange 回调让外部决定是否更新。
2451
- */
2452
- private _notifyGroupCheckedChanges;
2453
2448
  /**
2454
2449
  * 折叠所有任务(受控模式下触发 onCollapseAll 回调,由外部操作 tableTaskList 后刷新)
2455
2450
  */
@@ -280,19 +280,6 @@ declare class GroupRow extends Context {
280
280
  * Handle click on group row
281
281
  */
282
282
  handleClick(mouseX: number, mouseY: number): boolean;
283
- /**
284
- * 选中/取消选中该组下的所有子行(包括子分组及其子行)
285
- *
286
- * 使用全量数据(_fullData)而非 body.data,确保收起的组也能正确选中/取消选中。
287
- * 从当前组头在全量数据中的位置开始,往后遍历,直到遇到同级或更高级的分组行为止,
288
- * 期间所有的普通数据行都属于该组。
289
- * 对可见行通过 Row 对象调用 handleCheck,对不可见行直接操作 selectedRowIds。
290
- *
291
- * @param groupId - 组头行的 ID
292
- * @param checked - 目标选中状态
293
- * @returns 变更后该组内所有行的 rowId 数组
294
- */
295
- private selectGroupRows;
296
283
  /**
297
284
  * 计算该组下将新增的选中行数(不含已选中的行)
298
285
  * 用于 maxSelectedRows 前置校验
@@ -16,7 +16,7 @@ declare class Row extends Context {
16
16
  rowHeader: RowHeader;
17
17
  constructor(grid: DataGrid, rowIndex: number, x: number, y: number, height: number, data: RowData);
18
18
  isInVerticalAutofill(mouseX: number, mouseY: number): boolean;
19
- handleCheck(checked?: boolean, event?: MouseEvent): void;
19
+ handleCheck(checked?: boolean, event?: MouseEvent, silent?: boolean): void;
20
20
  mouseDown(x: number, y: number): void;
21
21
  mouseMove(mouseX: number, mouseY: number): void;
22
22
  handleAutofill(x: number, y: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.26-next.0",
3
+ "version": "0.2.26",
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",