arthub-table 0.2.81 → 0.2.82
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/core/viewers/PivotViewer.d.ts +3 -1
- package/dist/types/core/viewers/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -45,7 +45,9 @@ declare class PivotViewer implements CellViewer<PivotViewerData> {
|
|
|
45
45
|
/**
|
|
46
46
|
* 处理双击事件
|
|
47
47
|
* 对于 image 类型的 pivot 字段,双击图片打开文件详情页(与普通 file 列双击行为一致)。
|
|
48
|
-
* 实现方式:委托给 ImageViewer.
|
|
48
|
+
* 实现方式:委托给 ImageViewer.onDblClick 做命中检测,并用桥接回调把 onClickImage 转为 onFileGoToDetail。
|
|
49
|
+
* 依赖 viewerData 上的:pivotData(cellValueTransformer 注入)、pivotAssetIds 与 fileMeta
|
|
50
|
+
* (rowDataAdapter 从 pivotResolver 透传)、onFileGoToDetail(DataGridIntegration 注入)。
|
|
49
51
|
*/
|
|
50
52
|
onDblClick(context: ViewerRenderContext, data: PivotViewerData, localX: number, localY: number): boolean;
|
|
51
53
|
/**
|
|
@@ -1165,6 +1165,12 @@ export interface PivotViewerData extends CellViewerData {
|
|
|
1165
1165
|
* 由 transformPivotValue 从 deliverable 对象中提取,用于双击打开文件详情。
|
|
1166
1166
|
*/
|
|
1167
1167
|
pivotAssetIds?: number[];
|
|
1168
|
+
/**
|
|
1169
|
+
* 被透视源字段的 file_meta(由 pivotResolver 提供、transformPivotValue 透传)。
|
|
1170
|
+
* 取值由服务端模板配置下发,可能是 'deliverable' / 'process_file' / 其他,Canvas 侧不做枚举假设。
|
|
1171
|
+
* 供双击打开文件详情时透传给宿主(宿主据此决定是否拉取版本组等)。
|
|
1172
|
+
*/
|
|
1173
|
+
fileMeta?: string;
|
|
1168
1174
|
/** 双击文件项回调(打开文件详情,由 DataGridIntegration 从 fileCallbacks 注入) */
|
|
1169
1175
|
onFileGoToDetail?: (file: any, data: any) => void;
|
|
1170
1176
|
/** 点击图片回调(打开图片预览,由 DataGridIntegration 从 imageCallbacks 注入) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arthub-table",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.82",
|
|
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",
|