arthub-table 0.2.0-beta.52 → 0.2.0-beta.53
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/arthub-table.common.js +1 -1
- package/dist/arthub-table.common.js.map +1 -1
- package/dist/arthub-table.umd.js +1 -1
- package/dist/arthub-table.umd.js.map +1 -1
- package/dist/arthub-table.umd.min.js +1 -1
- package/dist/arthub-table.umd.min.js.map +1 -1
- package/dist/types/adapters/DataGridIntegration.d.ts +6 -0
- package/dist/types/core/DataGrid.d.ts +16 -0
- package/package.json +1 -1
|
@@ -121,6 +121,12 @@ export interface DataGridInitOptions {
|
|
|
121
121
|
* 使宿主应用可以覆盖默认的 fontFamilyPrimary / fontFamilySystem 等 Token。
|
|
122
122
|
*/
|
|
123
123
|
customTokens?: Record<string, any>;
|
|
124
|
+
/**
|
|
125
|
+
* 是否隐藏表头业务图标(TAPD / IOMC / fieldHint / link)。
|
|
126
|
+
* 对齐 DOM 表格的 "显示表头图标" 开关(tableHeaderIconConfigStorage.hideIcon)。
|
|
127
|
+
* 默认 false(显示图标)。
|
|
128
|
+
*/
|
|
129
|
+
hideHeaderIcons?: boolean;
|
|
124
130
|
}
|
|
125
131
|
/**
|
|
126
132
|
* DataGrid 事件回调配置
|
|
@@ -382,6 +382,13 @@ export interface DataGridOptions {
|
|
|
382
382
|
* Default: false (preserves existing behavior for backward compatibility).
|
|
383
383
|
*/
|
|
384
384
|
disableClickOutside?: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* 是否隐藏表头业务图标(TAPD / IOMC / fieldHint / link)。
|
|
387
|
+
* 对齐 DOM 表格的 hideIcon 能力:用户在 "显示表头图标" 开关关闭时,
|
|
388
|
+
* 表头区域的四种业务图标均不再绘制,但图标右侧的排序/筛选/设置图标不受影响。
|
|
389
|
+
* 默认 false(显示图标)。
|
|
390
|
+
*/
|
|
391
|
+
hideHeaderIcons?: boolean;
|
|
385
392
|
onTreeExpand?: (rowData: RowData, expanded: boolean) => void;
|
|
386
393
|
onCellTextClick?: (rowData: RowData, colId: string) => void;
|
|
387
394
|
onCellTotalNumClick?: (rowData: RowData, colId: string) => void;
|
|
@@ -842,6 +849,8 @@ declare class DataGrid {
|
|
|
842
849
|
enableKeyboardShortcuts: boolean;
|
|
843
850
|
/** Whether to disable built-in "click outside to close editing" behavior */
|
|
844
851
|
disableClickOutside: boolean;
|
|
852
|
+
/** 是否隐藏表头业务图标(TAPD / IOMC / fieldHint / link),对齐 DOM 表格 hideIcon */
|
|
853
|
+
hideHeaderIcons: boolean;
|
|
845
854
|
/** 非受控模式下的完整数据(包含所有分组的子行) */
|
|
846
855
|
private _fullData;
|
|
847
856
|
/** 双缓冲:离屏 canvas(避免每帧创建,懒初始化 + 复用) */
|
|
@@ -1815,6 +1824,13 @@ declare class DataGrid {
|
|
|
1815
1824
|
* @returns 高亮色字符串,未设置时返回空字符串
|
|
1816
1825
|
*/
|
|
1817
1826
|
getColumnHighlightColor(columnKey: string): string;
|
|
1827
|
+
/**
|
|
1828
|
+
* 设置是否隐藏表头业务图标(TAPD / IOMC / fieldHint / link)。
|
|
1829
|
+
* 对齐 DOM 表格的 "显示表头图标" 开关:关闭时四种图标均不绘制,
|
|
1830
|
+
* 但排序/筛选/设置图标不受影响,同时图标 hover 热区(fieldHintIconBounds /
|
|
1831
|
+
* linkIconBounds)也会在下次 draw 时被置空,避免隐藏后仍触发 hover。
|
|
1832
|
+
*/
|
|
1833
|
+
setHideHeaderIcons(hide: boolean): void;
|
|
1818
1834
|
/**
|
|
1819
1835
|
* 批量设置表头文字颜色(用于新加入字段紫色高亮等场景)
|
|
1820
1836
|
* @param colors 表头文字颜色映射对象:{ columnKey: color },color 为空字符串表示清除
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arthub-table",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.53",
|
|
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",
|