arthub-table 0.2.26 → 0.2.27-next.1

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.
@@ -17,6 +17,15 @@ declare class TextViewer implements CellViewer<TextViewerData> {
17
17
  * Get the display text from data
18
18
  */
19
19
  private getDisplayText;
20
+ /**
21
+ * 把任意值安全转换为可显示字符串。
22
+ * 防御性兜底:避免 String({...}) → '[object Object]' 直接显示在单元格里。
23
+ * - 简单类型直接 String()
24
+ * - 对象优先取 displayName / display_name / label / name / value 字段
25
+ * - 数组转为逗号分隔
26
+ * - 仍无法降级时返回空串而不是 '[object Object]'
27
+ */
28
+ private coerceToString;
20
29
  /**
21
30
  * 检查内容是否为富文本格式(与 AssetMatrix customStyle.ts 中 isRichTextContent 一致)
22
31
  */
@@ -661,6 +661,8 @@ export interface TextViewerWithSwitcherData extends CellViewerData {
661
661
  businessOrderCount?: number;
662
662
  /** 点击任务图标回调(如跳转 TAPD 页面),与 DOM 版 onClickNameIcon + iconJumpUrl 对齐 */
663
663
  onClickIcon?: (rowData: Record<string, any>) => void;
664
+ /** 平铺模式:不显示缩进线和展开箭头,内容起始位置与表头对齐 */
665
+ isFlatMode?: boolean;
664
666
  }
665
667
  /**
666
668
  * 文件项信息
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.26",
3
+ "version": "0.2.27-next.1",
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",