@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.
- package/dist/core/api/gridApi.d.ts +2 -0
- package/dist/core/api/gridApi.d.ts.map +1 -1
- package/dist/core/grid/grid.d.ts +1 -1
- package/dist/core/grid/grid.d.ts.map +1 -1
- package/dist/core/row/getRowIndex.d.ts +7 -1
- package/dist/core/row/getRowIndex.d.ts.map +1 -1
- package/dist/core/row/resolveDisplayRowById.d.ts +26 -8
- package/dist/core/row/resolveDisplayRowById.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1820 -1791
- package/dist/index.es.js.map +1 -1
- package/dist/types/core.d.ts +9 -1
- package/package.json +1 -1
package/dist/types/core.d.ts
CHANGED
|
@@ -1572,10 +1572,16 @@ export declare interface GetRowHeightParams {
|
|
|
1572
1572
|
rowIndex: number;
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
|
-
/** `getRowIndex` / `getRowIndexes` 选项;`type` 与
|
|
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;
|