@taocompany/magic-grid 0.9.9 → 0.9.10

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.
@@ -1572,10 +1572,16 @@ export declare interface GetRowHeightParams {
1572
1572
  rowIndex: number;
1573
1573
  }
1574
1574
 
1575
- /** `getRowIndex` / `getRowIndexes` 选项;`type` 与 `removeRows({ indexMode })` / `moveRows({ indexMode })` 同语义 */
1575
+ /** `getRowIndex` / `getRowIndexes` 选项;`type` 与 mutation API 的 `indexMode` 同语义 */
1576
1576
  export declare interface GetRowIndexOptions {
1577
1577
  /** @default 'source' */
1578
1578
  type?: RowIndexMode;
1579
+ /**
1580
+ * 为 `true` 时返回组内 leaf 下标,与 `addGroupRows({ index })` 同坐标系。
1581
+ * 非分组 leaf / 分组头 / 平铺表 → `null`。
1582
+ * @default false
1583
+ */
1584
+ group?: boolean;
1579
1585
  }
1580
1586
 
1581
1587
  export declare interface GetSiblingRowByIteratorOptions<TData = RowData> {
@@ -1857,6 +1863,8 @@ export declare interface GridApi extends RowMutationGridApi {
1857
1863
  /**
1858
1864
  * 按 rowId 查下标。完整说明(source vs display、与快照字段对齐)见 `src/core/row/getRowIndex.ts`。
1859
1865
  *
1866
+ * - `options.group: true` — 组内 leaf 下标,与 `addGroupRows({ index })` 同坐标系
1867
+ *
1860
1868
  * @see getRowIndexes — 批量版
1861
1869
  */
1862
1870
  getRowIndex(rowId: RowId, options?: GetRowIndexOptions): number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taocompany/magic-grid",
3
- "version": "0.9.9",
3
+ "version": "0.9.10",
4
4
  "description": "A high-performance virtual table component library for Vue 3",
5
5
  "type": "module",
6
6
  "license": "MIT",