arthub-table 0.2.95-next.1 → 0.2.95-next.2
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/PersonViewer.d.ts +2 -3
- package/dist/types/core/viewers/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ declare class PersonViewer implements CellViewer<PersonViewerData> {
|
|
|
14
14
|
/** The active cell style is shared by the small person-card drawing helpers in one synchronous draw pass. */
|
|
15
15
|
private _cellStyle;
|
|
16
16
|
/**
|
|
17
|
-
* 每个 cell
|
|
17
|
+
* 每个 cell 的人员 tooltip 命中区域缓存。
|
|
18
18
|
* 二级结构 WeakMap<scope, Map<`${rowIndex}-${colIndex}`, PersonOverflowInfo[]>>:
|
|
19
19
|
* - 外层 scope 用于区分 DataGrid 与其内部各个 NestedGrid,避免内外层 rowIndex/colIndex 相同时互相覆盖
|
|
20
20
|
* - 作用域实例被 GC 后 WeakMap 自动释放,无需主动清理
|
|
@@ -100,8 +100,7 @@ declare class PersonViewer implements CellViewer<PersonViewerData> {
|
|
|
100
100
|
*/
|
|
101
101
|
private drawPlaceholder;
|
|
102
102
|
/**
|
|
103
|
-
* 鼠标 hover
|
|
104
|
-
* 命中任意 person 卡片矩形(含背景模式 / 普通模式),若 fullText 非空则显示。
|
|
103
|
+
* 鼠标 hover 时命中缓存区域且 fullText 非空,则显示完整人员列表。
|
|
105
104
|
*/
|
|
106
105
|
getTooltip(context: ViewerRenderContext, _data: PersonViewerData, localX: number, localY: number): {
|
|
107
106
|
text: string;
|
|
@@ -391,6 +391,8 @@ export interface PersonViewerData extends CellViewerData {
|
|
|
391
391
|
avatarShape?: 'circle' | 'rounded-rect';
|
|
392
392
|
/** Whether to show name background tag */
|
|
393
393
|
showNameBackground?: boolean;
|
|
394
|
+
/** 通过人员标签底色表示离职或离项状态。 */
|
|
395
|
+
personLeaveStatusAsBackground?: boolean;
|
|
394
396
|
}
|
|
395
397
|
/**
|
|
396
398
|
* Person information
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arthub-table",
|
|
3
|
-
"version": "0.2.95-next.
|
|
3
|
+
"version": "0.2.95-next.2",
|
|
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",
|