@canvas-components/list-table 0.3.10 → 0.3.11

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/index.d.cts CHANGED
@@ -111,6 +111,8 @@ interface ListTableDebugOptions {
111
111
  showFixedSplitLines?: boolean;
112
112
  showViewportBounds?: boolean;
113
113
  showHitTarget?: boolean;
114
+ /** 是否展示当前命中绘制节点的信息浮层,默认开启。 */
115
+ showNodeInspector?: boolean;
114
116
  showHeaderActionOverlay?: boolean;
115
117
  logDrawCalls?: boolean;
116
118
  logStateChanges?: boolean;
@@ -187,6 +189,12 @@ interface DebugHitTestResult {
187
189
  /** 表头文本所属层级,用于跨层拖选时区分行。 */
188
190
  textSelectionRowIndex?: number;
189
191
  textSelectionRect?: Rect;
192
+ /** 调试模式下命中的细粒度绘制节点。 */
193
+ debugNodeType?: string;
194
+ /** 细粒度绘制节点的实际碰撞区域。 */
195
+ debugRect?: Rect;
196
+ /** 细粒度文本节点的绘制内容。 */
197
+ debugText?: string;
190
198
  }
191
199
  /**
192
200
  * action 类型。
@@ -223,6 +231,12 @@ interface RenderCellDescriptor {
223
231
  /** 表头文本所属层级,用于跨层拖选时区分行。 */
224
232
  textSelectionRowIndex?: number;
225
233
  textSelectionRect?: Rect;
234
+ /** 表头文本的实际字形碰撞区域,仅用于调试命中。 */
235
+ debugTextRect?: Rect;
236
+ /** 调试节点展示的文本内容。 */
237
+ debugText?: string;
238
+ /** 调试模式下用于区分细粒度绘制节点的类型。 */
239
+ debugNodeType?: string;
226
240
  actionType?: HeaderActionType;
227
241
  scrollbarRole?: "thumb" | "track" | "decrease-button" | "increase-button";
228
242
  visibilityState?: HeaderActionVisibilityState;
@@ -716,10 +730,24 @@ interface ListTableSwitchCellContent<RecordType = any> extends ListTableBaseCell
716
730
  uncheckedChildren?: string;
717
731
  }
718
732
  interface ListTableNestedTableColumn {
733
+ key?: string;
719
734
  title: string;
720
735
  dataIndex: TableColumnDataIndex;
721
736
  width?: number;
722
737
  align?: ListTableHorizontalAlign;
738
+ /** 是否允许编辑子表格单元格。 */
739
+ editable?: ListTableEditable<Record<string, unknown>>;
740
+ /** 子表格单元格编辑器配置。 */
741
+ formItemProps?: ListTableFormItemProps<Record<string, unknown>>;
742
+ fixed?: "left" | "right";
743
+ allowSort?: boolean;
744
+ sortValueGetter?: (record: Record<string, unknown>) => string | number | null | undefined;
745
+ defaultSortOrder?: "ascend" | "descend";
746
+ allowFilter?: boolean;
747
+ filterModes?: Array<"fuzzy" | "exact">;
748
+ filterValueGetter?: (record: Record<string, unknown>) => unknown;
749
+ filterOptionValueGetter?: (record: Record<string, unknown>) => unknown;
750
+ filterOptions?: Array<string | ListTableFilterOption>;
723
751
  }
724
752
  /**
725
753
  * 单元格内嵌表格片段。
package/dist/index.d.ts CHANGED
@@ -111,6 +111,8 @@ interface ListTableDebugOptions {
111
111
  showFixedSplitLines?: boolean;
112
112
  showViewportBounds?: boolean;
113
113
  showHitTarget?: boolean;
114
+ /** 是否展示当前命中绘制节点的信息浮层,默认开启。 */
115
+ showNodeInspector?: boolean;
114
116
  showHeaderActionOverlay?: boolean;
115
117
  logDrawCalls?: boolean;
116
118
  logStateChanges?: boolean;
@@ -187,6 +189,12 @@ interface DebugHitTestResult {
187
189
  /** 表头文本所属层级,用于跨层拖选时区分行。 */
188
190
  textSelectionRowIndex?: number;
189
191
  textSelectionRect?: Rect;
192
+ /** 调试模式下命中的细粒度绘制节点。 */
193
+ debugNodeType?: string;
194
+ /** 细粒度绘制节点的实际碰撞区域。 */
195
+ debugRect?: Rect;
196
+ /** 细粒度文本节点的绘制内容。 */
197
+ debugText?: string;
190
198
  }
191
199
  /**
192
200
  * action 类型。
@@ -223,6 +231,12 @@ interface RenderCellDescriptor {
223
231
  /** 表头文本所属层级,用于跨层拖选时区分行。 */
224
232
  textSelectionRowIndex?: number;
225
233
  textSelectionRect?: Rect;
234
+ /** 表头文本的实际字形碰撞区域,仅用于调试命中。 */
235
+ debugTextRect?: Rect;
236
+ /** 调试节点展示的文本内容。 */
237
+ debugText?: string;
238
+ /** 调试模式下用于区分细粒度绘制节点的类型。 */
239
+ debugNodeType?: string;
226
240
  actionType?: HeaderActionType;
227
241
  scrollbarRole?: "thumb" | "track" | "decrease-button" | "increase-button";
228
242
  visibilityState?: HeaderActionVisibilityState;
@@ -716,10 +730,24 @@ interface ListTableSwitchCellContent<RecordType = any> extends ListTableBaseCell
716
730
  uncheckedChildren?: string;
717
731
  }
718
732
  interface ListTableNestedTableColumn {
733
+ key?: string;
719
734
  title: string;
720
735
  dataIndex: TableColumnDataIndex;
721
736
  width?: number;
722
737
  align?: ListTableHorizontalAlign;
738
+ /** 是否允许编辑子表格单元格。 */
739
+ editable?: ListTableEditable<Record<string, unknown>>;
740
+ /** 子表格单元格编辑器配置。 */
741
+ formItemProps?: ListTableFormItemProps<Record<string, unknown>>;
742
+ fixed?: "left" | "right";
743
+ allowSort?: boolean;
744
+ sortValueGetter?: (record: Record<string, unknown>) => string | number | null | undefined;
745
+ defaultSortOrder?: "ascend" | "descend";
746
+ allowFilter?: boolean;
747
+ filterModes?: Array<"fuzzy" | "exact">;
748
+ filterValueGetter?: (record: Record<string, unknown>) => unknown;
749
+ filterOptionValueGetter?: (record: Record<string, unknown>) => unknown;
750
+ filterOptions?: Array<string | ListTableFilterOption>;
723
751
  }
724
752
  /**
725
753
  * 单元格内嵌表格片段。