arthub-table 0.2.76-next.2 → 0.2.77-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.
@@ -21,6 +21,8 @@ export interface SearchMatchResult {
21
21
  * 由业务侧(AssetMatrix)通过 controllerProps.pendingRelocateInfo 传入,
22
22
  * preprocessRow 按 rowKey 匹配命中行后打标 result._pendingRelocate。
23
23
  * props 驱动的优势:行对象被业务侧重建(单行刷新换新行对象)后标记不丢失。
24
+ *
25
+ * 兼容两种形态:单对象(单行待定)或数组(多行待定,共享标题)。
24
26
  */
25
27
  export interface PendingRelocateInfo {
26
28
  /** 待定行的 id(按 rowKey 匹配,字符串化比较,不假设类型) */
@@ -29,6 +31,12 @@ export interface PendingRelocateInfo {
29
31
  bannerText: string;
30
32
  /** 匹配用的行 key,默认 'id'(业务侧 grid.rowKey 可配) */
31
33
  rowKey?: string;
34
+ /**
35
+ * 多行待定模式下:该行是否为「连续待定块」的首行。
36
+ * 仅块首行绘制共享标题 banner(行高 +24);块内其余行只染黄底(行高不变)。
37
+ * 单对象(单行模式)缺省视为 true。
38
+ */
39
+ isBlockStart?: boolean;
32
40
  }
33
41
  /**
34
42
  * Preprocessed row data with computed metadata
@@ -47,6 +55,7 @@ export interface PreprocessedRow {
47
55
  /** 待定迁移态标记:命中 props.pendingRelocateInfo 的行由 preprocessRow 写入 */
48
56
  _pendingRelocate?: {
49
57
  bannerText: string;
58
+ isBlockStart?: boolean;
50
59
  };
51
60
  _isTopLevelEntity?: boolean;
52
61
  _isEmpty?: boolean;
@@ -16,8 +16,11 @@ 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
  /**
19
- * 待定迁移态提示贴片高度:本行为待定行时返回 PENDING_RELOCATE_BANNER_HEIGHT,否则 0。
19
+ * 待定迁移态提示贴片高度:本行为待定行且是「连续待定块」的首行时返回
20
+ * PENDING_RELOCATE_BANNER_HEIGHT,否则 0。
20
21
  * 贴片悬浮绘制在行顶部(不占行高,cells 几何不受影响)。
22
+ * 多行待定(共享标题)模式下,仅块首行绘制贴片,块内其余行只染黄底;
23
+ * 单行模式(单对象打标,无 isBlockStart)恒为块首,行为与旧版一致。
21
24
  */
22
25
  get pendingRelocateBannerHeight(): number;
23
26
  isInVerticalAutofill(mouseX: number, mouseY: number): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.76-next.2",
3
+ "version": "0.2.77-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",